Recent Changes - Search:





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.

  • To start the script folding in runlevels 0123 and stop in 456, run (as root):
   $ update-rc.d folding start 0123 stop 456


       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 ...
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 ...
root@shibu-laptop:/etc/init.d# update-rc.d -f vsftpd remove
 Removing any system startup links for /etc/init.d/vsftpd ...

Edit - History - Print - Recent Changes - Search
Page last modified on April 03, 2008, at 02:06 PM