chkconfig --del bigd
chkconfig --del bigd
Firstly, your script to control the bigd daemon must be written with specific reference to chkconfig. If you look at other scripts in /etc/init.d you will see many that follow a similar format to this (this is from the script /etc/rc.d/init.d/sshd):- #!/bin/bash # # Init file for OpenSSH server daemon # # chkconfig: 2345 55 25 # description: OpenSSH server daemon The three "numbers" following "chkconfig:" determine how chkconfig will add the script to the startup and shutdown events. The first number is actually a list of run-levels that the script should be started in. In this case, the sshd daemon will be started in run-levels 2, 3, 4 and 5. Ergo, in run-levels 0, 1 and 6 the sshd daemon will be stopped or killed. The second and third numbers control the order in which the process is started (55) and killed (25). A look a the list of entries in the rc.d directory for sshd should help explain this:- /etc/rc.d/init.d/sshd /etc/rc.d/rc0.d/K25sshd /etc/rc.d/rc1.d/K25sshd /etc/rc.d/rc2.d/S55sshd /etc/rc.d/rc3.d/S55sshd /etc/rc.d/rc4.d/S55sshd /etc/rc.d/rc5.d/S55sshd /etc/rc.d/rc6.d/K25sshd Each of the entries in the rcN.d (where N = 0 to 6) directories is a symbolic link back to the base script in /etc/rc.d/init.d/sshd. So when run-level 2 is initiated, /etc/rc.d/rc2.d/S55sshd is run. There are many other links in the /etc/rc.d/rc2.d to other scripts in /etc/rc.d/init.d, and the prefix added by chkconfig (i.e. S55 in the case of sshd) determines the sequence in which these scripts are performed. So sshd is started in run-level 2 after all the "earlier" entries have already been started (e.g. scripts starting with S10, S20, S30 etc.). For custom scripts, you would be advised to use a high number to start the script (e.g. 99) and a low number to stop/kill it. This will ensure all dependent processes are started when you start your script. To conclude, your bigd script should have something like this at the top of the file:- #!/bin/bash # # Init file for BIG server daemon # # chkconfig: 23 99 00 # description: Script to start bigd Then you can use "chkconfig --add bigd" to create all the symbolic links in the appropriate /etc/rcN.d directories. I hope that helps :)
chkconfig --list
The default runlevel is specified in /etc/inittab. There is no universally accepted runlevel that is specified as the "default." Red Hat and Fedora use 3 or 5, Ubuntu uses 2, Mandriva and SUSE use 5, and Gentoo uses 3. Some (a relatively small number) Linux distros do not use a SysV init style, and thus have no runlevels at all.
they would all look the same
all of our all clothes would be very dirty (ALL THE TIME)
If nobody was creative, then we would all be the same. If we were all the same, then we would all have the same ideas. If that were true, then nothing would ever get done. If nothing ever changed, then we would all die.
no!not at all that would be crazy! no!not at all that would be crazy!
If they were not different they would all be called the same thing!If they were not different they would all be called the same thing!If they were not different they would all be called the same thing!If they were not different they would all be called the same thing!
We would all freeze because there was no light, therefore, we would all die.
We would all starve and die off.
All producers would die out and eventually so would all organisms.