Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 05-16-2006, 06:18 AM   #1
LQ Newbie
Registered: Dec 2005
Posts: 16
Blog Entries: 3

Rep: Reputation: 0
How to remove a daemon from the startup routine?

How to remove the module from the init process?
while booting, we can see there is a lot of daemons are setting up like "starting eth0........ [OK]"
Actually i have SFS, which is a file system i used in bit earlier. When ever i'm booting the machine, in the lot of starting sfscd(client daemon) and sfssd (server daemon) is also loaded all the times. now i would like to remove this daemon. how to do that?
Old 05-16-2006, 08:04 AM   #2
LQ Veteran
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738
Depending on your system, you will have a set of links to the various init programs (scripts). On my system (Ubuntu), there is a folder (/etc/init.d) with all of the scripts. Then, there is a set of folders, rcX.d---where X is the runlevel. In the init process, the selcted runlevel points to one of these---eg rc3.d. In this folder are links prefaced by either K or S, followed by a number. K is for kill and S is for start. The numbers set the order in which things happen.

To modify how thing start at any runlevel, you would simply delete the links---or change the K and S as appropriate. If you simply delete a link, then the daemon could be still running if it was started in a different runlevel. If that is a likely scenario then you need the "K" link
Old 05-16-2006, 09:11 AM   #3
Senior Member
Registered: Nov 2005
Location: Belgium
Distribution: Red Hat, Fedora
Posts: 1,515

Rep: Reputation: 61
Or simply try using "chkconfig", if your system has it.

/sbin/chkconfig --levels some_levels your_daemon off
some_levels: runlevels for which you want to disable the daemon, ie 345 for levels 3, 4 and 5
your_daemon: the name of the script in /etc/init.d responsible for launching/stopping the daemon. It usually
has a name similar to or the same as your daemon (ie "vsftpd" for the vsftpd daemon).

You'll probably need root access to pull this off.

Also, you can use:
/sbin/chkconfig --list
to get a complete list of all daemons (services) that are installed and the runlevels they will be running in.
Old 05-17-2006, 01:12 AM   #4
LQ Newbie
Registered: Dec 2005
Posts: 16

Original Poster
Blog Entries: 3

Rep: Reputation: 0

Hi to all,

Thanks Mr Timmeke.

I got it worked done. by the following steps of commands.

$chkconfig --level 12345 sfscd off
$chkconfig --level 12345 sfssd off
Thanks a lot.


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
noip daemon startup help rino.caldelli Linux - Networking 2 02-19-2006 04:39 AM
daemon startup help! rino.caldelli Mandriva 4 12-18-2005 02:39 AM
Any way to startup daemon automatically? Niceman2005 Linux - Newbie 2 01-12-2005 10:27 PM
About startup routine eshwar_ind Programming 18 05-23-2004 03:01 AM
Startup Daemon on Boot EuroJovi Linux - Newbie 4 01-09-2004 11:39 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:02 PM.

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