Click to See Complete Forum and Search --> : startup script howto?


frankcow
01-06-2003, 11:32 PM
Hi,
I'm having serious pains trying to get my noip client to run on startup

I'm running redhat 8
i created a script, linked it in the rc5.d dir,
tried to add a service with chkconfig, it tells me the script doesn't support chkconfig

help?????

JC

z0mbix
01-07-2003, 05:41 AM
Just put the script in /etc/rc.d/init.d and create a symlink in the /etc/rc5.d/ directory called SXXname, XX being a number relevant to where in the startup process you want the script to run. If you want it to run at the very end of the boot process you can just add a link to the script in /etc/rc.d/rc.local. Much easier! :)

Hena
01-07-2003, 06:11 AM
Chkconfig need two lines in script in order to work.# chkconfig: xx zz yy
# description: desc
xx is the levels in which its on
zz is the start number
yy is the kill number.

You don't need to make any symlinks. Also read "man chkconfig".

frankcow
01-07-2003, 08:29 PM
Thank you! chkconfig took it!

i was missing the start and kill sequence ##s!