Find the answer to your Linux question:
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 : ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just 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

  2. #2
    Linux Engineer Kloschüssel's Avatar
    Join Date
    Oct 2005
    Location
    Italy
    Posts
    773
    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!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •