autorun - update-rc.d init.d
sudo mv /filename /etc/init.d/
sudo chmod +x /etc/init.d/filename
sudo update-rc.d filename defaults
/etc/init.d/
The directory containing the actual init scripts.
/etc/rc?.d/
The directories containing the links used by init and managed by update-rc.d.
/etc/init.d/skeleton
Model for use by writers of init.d scripts.
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.
Comments
Post a Comment