Making scripts into one service

Making scripts into one service

am 05.12.2007 06:29:19 von Ckesey

I have several scripts that set to run when my unix server boots up
(in rc.local). These scripts kick off other programs that need to run
on the server.

Can anyone give me advice/guidance on how to take these scripts and
make them into one service that i can stop/start with one command such
as service stop example????

This is an example of three programs I start from the rc.local that I
would like to include:

sudo -b /etc/adb5800/adbccaster5800 -c./adbccaster_5800.cfg

sudo -b /etc/adb3800/adbccaster3800 -c./adbccaster_3800.cfg

cd /opt/kreatel_win/
gij -jar /opt/kretel_win/InfocastServer.jar -v


Advice/guidance is much appreciated!!