Results 1 to 2 of 2
Hi,
I have apache ,jboss and jon instances on various linux boxes.I need to create a generic startup script to restart those instances on server reboot.The script requirement is :
...
- 03-18-2011 #1Just Joined!
- Join Date
- Mar 2011
- Posts
- 1
Single Startup script for Apache/jboss
Hi,
I have apache ,jboss and jon instances on various linux boxes.I need to create a generic startup script to restart those instances on server reboot.The script requirement is :
It should take the name of instances from one text file named active-servers and recycle those instances.
1. start-mws-servers (generic script for /etc/rc.d but just create it in ~/bin dir for current testing)
It simply searches ~/bin/active-servers for active server recycle scripts
It executes each recycle script and passes it the 'start' command
It logs results to /tmp/start-mws-servers.log so we can review it after a machine recycle
Please help.
Regards,
Saurau
- 03-22-2011 #2
For debian derivates like ubuntu you can pick a random start/stop script, clone it (cp) and then modify the copy to execute your specific commands instead. Beware that during init most PATH variables are not set!


Reply With Quote