startup script

hi all,

I have a shell script, pretty simple, just one line command to start a application deamon. What is the best way to ensure this runs when the computer is booted.

Thanks.

Hi hussainwadiwalla,

just one line command to start a application deamon. What is the best way to ensure this runs when the computer is booted.

The best way is to turn it into a LSB startup script. That way, you can use all run control features and have it integrated into your system, including dependencies to other services. See “/etc/init.d/skeleton”.

The lazy way to just have that single line executed after the run-level has been reached, is to add it to “/etc/init.d/after.local”. This may be dependant on the OS version, I assumed SLES11SP3.

Regards,
Jens

Hi
If your not concerned where is starts in the boot process, the edit/add
to /etc/init.d/boot.local. Else if there are particular services to be
up, or run before, then copy the /etc/init.d/skeleton to a suitable
name in /etc/init.d and edit as required.


Cheers Malcolm °¿° SUSE Knowledge Partner (Linux Counter #276890)
SLED 11 SP3 (x86_64) GNOME 2.28.0 Kernel 3.0.93-0.8-default
If you find this post helpful and are logged into the web interface,
please show your appreciation and click on the star below… Thanks!