usnistgov / SpectrumBrowser

ITL
12 stars 11 forks source link

Set up services to auto-start on reboot. #210

Closed ranganathanm closed 9 years ago

ranganathanm commented 9 years ago

When the VM reboots, the msod services should come up automatically, They should start in the right order - i.e. mongod and memcached first and then the others. Thus, when your reboot the msod vm, msod will come up in a running state.

ranganathanm commented 9 years ago

Problem with sudo in the -bin scripts.

klhicks commented 9 years ago

What issue is it causing?

So you know I am now running into the same issue you are. The chkconfig command levels are being recognized but like you only spectrumbrowser, nginx, and memcached are starting at boot.

ranganathanm commented 9 years ago

You need a tty to invoke the sudo command (i.e. you need to be in a login shell). I am fixing it. Please wait for my git push.

ranganathanm commented 9 years ago

Please pull. Two issues remain :

  1. nginx still gives bad gateway on reboot (when run with the standard nginx service script).
  2. dbmonitor does not auto start.

Please investigate. This should be tested on a Virthal machine. After you reboot the vm, all required services should be up and running. Please test before you push. Thanks.

ranganathanm commented 9 years ago

Consider writing our own service script for nginx (don't use the standard one).

ranganathanm commented 9 years ago

Fixed. nginx fires up and runs fine if selinux is disabled.