LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 05-16-2006, 05:18 AM   #1
smsundar
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, 07:04 AM   #2
pixellany
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, 08:11 AM   #3
timmeke
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.

Code:
/sbin/chkconfig --levels some_levels your_daemon off
where:
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:
Code:
/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, 12:12 AM   #4
smsundar
LQ Newbie
 
Registered: Dec 2005
Posts: 16
Blog Entries: 3

Original Poster
Rep: Reputation: 0
thanks

Hi to all,

Thanks Mr Timmeke.

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

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


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

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

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

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration