Re: Controlling services
in /etc/init.d/ you will find a whole lot of scripts that are used to
stop and start scripts.
e.g.
/etc/init.d/somescript start
OR
/etc/init.d/somescript stop
By symbolically liking those scripts to the directory of your chosen run
level (e.g. /etc/rc2.d for run level 2) you can cause those services to
stop or start when entering or leaving that runlevel.
The way you name the link is important though, instead of
ln -s /etc/init.d/somescript /etc/rc2.d/somescript
, put a S for start or K for kill, followed by two digits for the order
something should start or be killed. e.g.
ln -s /etc/init.d/somescript /etc/rc2.d/S99somescript
to make it one of the last scripts to be started or
ln -s /etc/init.d/somescript /etc/rc2.d/S50somescript
to make it start earlier.
To stop these things from being started for a runlevel,delete the link
from the appropriate runlevel dir.
gotit?
goodest luck
Glenn
On Mon, 2004-06-14 at 21:01, Jacob Friis Larsen wrote:
> How do I control which services I would like to have running at each
> runlevel?
>
> Thanks,
> Jacob
>
Reply to: