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
I'm running a couple of servers on Centos 6 and have got npsystat setup (great work, thank you!) but don't have it set to run on reboot and was wondering what the best method was for running it with forever on a system like this. I'm not particularly familiar with node or forever to know the best way. Obviously I can just create an entry manually but was hoping you had a sensible suggestion for the right way :)
The text was updated successfully, but these errors were encountered:
I don't have a cleanly pre-baked solution for this. The setup I use is not generalized.
Forever will reliably keep npsystat running as long as the server stays up. Forever also has restart and stop commands. So it should be fairly easy to do a very simple init.d script to invoke this at boot.
The start command is in the README.
The stop command is very similar, something like forever stop /opt/npsystats/index.js
And restart is the same forever restart /opt/npsystats/index.js
obviously /opt/npsystats/index.js would be wherever you put npsystats.
Sorry, that's not the complete "right" answer. If I do get a init.d script I'll include it.
I'm running a couple of servers on Centos 6 and have got npsystat setup (great work, thank you!) but don't have it set to run on reboot and was wondering what the best method was for running it with forever on a system like this. I'm not particularly familiar with node or forever to know the best way. Obviously I can just create an entry manually but was hoping you had a sensible suggestion for the right way :)
The text was updated successfully, but these errors were encountered: