You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
node-startup is real simple and cool. I tried to use it for setting up an app on AWS EC2 instance. Initially I had a few failures from
a) Needing to add "sudo" to all the commands including "rm pid file", "mkdir", "chown", etc. Why would this be required? ... this was required when I was running this from the bash shell directly to test out the script.
b) Even after setting this script up in /etc/init.d and setting up the chkconfig --add node-startup, I noticed that the app does not start up after a reboot automatically. What might be wrong?
c) One of the reason that at reboot the node-startup does not work is, the old pid file is still around. Hence the start command fails. How can i ensure that the node-startup app is shutdown or pid file is ignored only at the reboot and initial startup?
Thanks for your help. Again, this script is nice and simple!
The text was updated successfully, but these errors were encountered:
node-startup is real simple and cool. I tried to use it for setting up an app on AWS EC2 instance. Initially I had a few failures from
a) Needing to add "sudo" to all the commands including "rm pid file", "mkdir", "chown", etc. Why would this be required? ... this was required when I was running this from the bash shell directly to test out the script.
b) Even after setting this script up in /etc/init.d and setting up the chkconfig --add node-startup, I noticed that the app does not start up after a reboot automatically. What might be wrong?
c) One of the reason that at reboot the node-startup does not work is, the old pid file is still around. Hence the start command fails. How can i ensure that the node-startup app is shutdown or pid file is ignored only at the reboot and initial startup?
Thanks for your help. Again, this script is nice and simple!
The text was updated successfully, but these errors were encountered: