X-No-Archive: Yes

Put your scripts in the directory
/etc/rc.d/init.d

Then do something like:
chkconfig --add scriptname1
chkconfig --add scriptname2

Then set the levels on which the scripts should run:
chkconfig --level 345 scriptname1 on
chkconfig --level 345 scriptname1 on

This creates symlinks in the rc{runlevel}.d directories.
Note that your scripts should accept parameters 'start', 'stop' and
'restart'! To have an example, check the existing /etc/rc.d/init.d scripts.

When stuff is done, you can start and stop with:
service scriptname1 start
or 'stop' or 'restart' or 'status' or whatever your scripts accept.

HTH
Bart

--- Original Message ---
> I have written two scripts that work together to 
> 
> One of the scripts is a perl script and the 
> other a BASH script.
> 
> I want these scripts to run during system 
> startup but I am unsure where I should place 
> them.


-- 
redhat-list mailing list
unsubscribe mailto:[EMAIL PROTECTED]
https://www.redhat.com/mailman/listinfo/redhat-list

Reply via email to