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.