Softwares ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
Main /
Update-rc
DESCRIPTION update-rc.d updates the System V style init script links /etc/rcrunlevel.d/NNname whose target is the script /etc/init.d/name. These links are run by init when it changes runlevels; they are generally used to start and stop system services such as daemons. runlevel is one of the runlevels supported by init, namely, 0123456789S, and NN is the two-digit sequence number that determines where in the sequence init will run the scripts.
$ update-rc.d folding start 0123 stop 456 usage: update-rc.d [-n] [-f] <basename> remove update-rc.d [-n] <basename> defaults|multiuser [NN | sNN kNN] update-rc.d [-n] <basename> start|stop NN runlvl [runlvl] [...] . -n: not really -f: force root@shibu-laptop:~# update-rc.d -f mysql remove Removing any system startup links for /etc/init.d/mysql ... /etc/rc0.d/K20mysql /etc/rc1.d/K20mysql /etc/rc2.d/S20mysql /etc/rc3.d/S20mysql /etc/rc4.d/S20mysql /etc/rc5.d/S20mysql /etc/rc6.d/K20mysql root@shibu-laptop:~# cd /etc/init.d root@shibu-laptop:/etc/init.d# ./mysql mysql mysql-ndb mysql-ndb-mgm root@shibu-laptop:/etc/init.d# update-rc.d -f proftpd remove Removing any system startup links for /etc/init.d/proftpd ... /etc/rc0.d/K50proftpd /etc/rc1.d/K50proftpd /etc/rc3.d/S50proftpd /etc/rc4.d/S50proftpd /etc/rc5.d/S50proftpd /etc/rc6.d/K50proftpd root@shibu-laptop:/etc/init.d# update-rc.d -f vsftpd remove Removing any system startup links for /etc/init.d/vsftpd ... /etc/rc0.d/K20vsftpd /etc/rc1.d/K20vsftpd /etc/rc2.d/S20vsftpd /etc/rc3.d/S20vsftpd /etc/rc4.d/S20vsftpd /etc/rc5.d/S20vsftpd /etc/rc6.d/K20vsftpd
|