[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: creating a custom service



  On Oct 30 at 14:07, Mitch Wiedemann spoke:

> Assuming your script is /etc/init.d/foo,  you would make a symlink thusly:
> 
> ln -s /etc/init.d/foo /etc/rc2.d/S80foo
> 
> What's happening is that the symlinks in /etc/rc2.d/ which start with
> the letter "S" followed by a number (00 - 99) are all of the services
> which will be started when the boot process enters runlevel 2.
> 
> So,  the "S" means "start" (and a "K" means "kill") and the number
> following it simply puts it in order in relation to the other symlinks
> in rc2.d.  So if you want your service to start very late in the
> process, you would use S99foo,  or S20foo if you want it earlier.


Ok, thanks!
So one has to do it by hand. Isn't there a convenience tool like
`chkconfig'?

-Hanspeter



Reply to: