Re: [ILUG] Where to put jobs that start with boot-up

From: Philip Reynolds (phil at domain redbrick.dcu.ie)
Date: Sun 10 Jun 2001 - 00:53:28 IST


John P. Looney's [john at domain antefacto.com] 55 lines of wisdom included:
> It's not bad, but there is a better way.
>
> Init scripts are scripts run, once for each daemon. Have a look in
> /etc/init.d or /etc/rc.d/init.d depending on the system you are running.
> Try and hack together a script of your own, based on one of the old ones.
> Stick the export JAVA... line & the path line in there.
>
> Then, to "enable" it, make symbolic links in /etc/rd?.d where '?' is 2 or
> 3. Doing;
>
> ln -s /etc/init.d/orion /etc/rc3.d/S40orion
>
> Will run "/etc/init.d/orion start" when you enter runlevel three, after
> cron and before sshd - at least on my system, where there exists
> /etc/rc3.d/S40cron and /etc/rc3.d/S51sshd. You get the idea.

However PATH's are generally set in /etc/profile or your shells
global rc file.
Phil.



This archive was generated by hypermail 2.1.6 : Thu 06 Feb 2003 - 13:10:36 GMT