How program start

Nils Kassube kassube at gmx.net
Mon Sep 10 07:03:01 UTC 2007


Christopher Gray wrote:
> However, I have created such scripts in /etc/init.d and then found them
> linked into a different directory in a filename that contains a number
> that seems to suggest the order in which that file would execute. 
> However, I have never executed a link command or assigned a number in
> some other way.  How did this link get created?  There seems to be some
> sort of automated trigger I don't understand.

Just create the link manually like this:

sudo ln -s /etc/myscript /etc/rc2.d/S99myscript

Then your script will get started after every other script has been run. 
Have a look at /usr/share/doc/sysv-rc/README.runlevels.gz for some 
explanation.


Nils




More information about the ubuntu-users mailing list