LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
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

Original Poster
Blog Entries: 3

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



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 01:42 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