LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-09-2016, 01:08 PM   #1
NotionCommotion
Member
 
Registered: Aug 2012
Posts: 789

Rep: Reputation: Disabled
Reversing update-rc.d


I created a script to run upon boot time as follows. I now decided I don't want it. Other than deleting /etc/init.d/client, what should I do? Maybe manually delete the six files in /etc/rc*? Expect a better way. Thanks
Code:
michael@raspberrypi:sudo vi /etc/init.d/client
michael@raspberrypi:sudo chmod 755 /etc/init.d/client
michael@raspberrypi:sudo update-rc.d client defaults
michael@raspberrypi:/etc/rc0.d $ find /etc/rc* -name "*client*"
/etc/rc0.d/K01client
/etc/rc1.d/K01client
/etc/rc2.d/S02client
/etc/rc3.d/S02client
/etc/rc4.d/S02client
/etc/rc5.d/S02client
/etc/rc6.d/K01client
michael@raspberrypi:/etc/rc0.d $
Please disregard.

Code:
michael@raspberrypi:/etc $ man update-rc.d
michael@raspberrypi:/etc $ update-rc.d -n client remove
insserv: remove service /etc/init.d/../rc0.d/K01client
insserv: remove service /etc/init.d/../rc1.d/K01client
insserv: remove service /etc/init.d/../rc2.d/S02client
insserv: remove service /etc/init.d/../rc3.d/S02client
insserv: remove service /etc/init.d/../rc4.d/S02client
insserv: remove service /etc/init.d/../rc5.d/S02client
insserv: remove service /etc/init.d/../rc6.d/K01client
insserv: dryrun, not creating .depend.boot, .depend.start, and .depend.stop
Failed to execute operation: Access denied
michael@raspberrypi:/etc $ sudo update-rc.d -n client remove
insserv: remove service /etc/init.d/../rc0.d/K01client
insserv: remove service /etc/init.d/../rc1.d/K01client
insserv: remove service /etc/init.d/../rc2.d/S02client
insserv: remove service /etc/init.d/../rc3.d/S02client
insserv: remove service /etc/init.d/../rc4.d/S02client
insserv: remove service /etc/init.d/../rc5.d/S02client
insserv: remove service /etc/init.d/../rc6.d/K01client
insserv: dryrun, not creating .depend.boot, .depend.start, and .depend.stop
michael@raspberrypi:/etc $ sudo update-rc.d client remove
michael@raspberrypi:/etc $ find /etc/rc* -name "*client*"
michael@raspberrypi:/etc $

Last edited by NotionCommotion; 12-09-2016 at 01:32 PM.
 
Old 12-09-2016, 02:20 PM   #2
AwesomeMachine
LQ Guru
 
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 5,521

Rep: Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015
The rc.d scripts are symlinks to init.d scripts. If you delete the script from /etc/init.d, the links should go away.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Reversing Multilib mlangdn Slackware 3 02-05-2010 12:00 PM
reversing a macro Deepak Inbasekaran Programming 6 07-21-2006 12:41 AM
reversing program greenthing Programming 3 02-27-2005 08:08 PM
reversing a number narendra_i Linux - Software 1 11-15-2003 09:25 AM
reversing videocard lackluster Linux - Hardware 1 11-16-2002 02:58 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:23 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration