New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Single start and restart command (start if not running, restart if running) #437
Comments
Anyone? Thanks in advance for your help! |
The restart should not fail if the process is not running in the first instance |
I agree with @vfloz: (I ran into this problem when migrating an old service to use forever. Something is calling it with |
Any maintainer opinion? A way to start if not running and restart if running sounds like a great feature for deployment scripts. |
I much prefer handling the (re)starting myself. |
👍 will go into |
As a If |
For potential reference, this works fine: forever restart $SCRIPT || forever start $SCRIPT |
I might have overlooked something, but is there a way to restart a script if it's already running, and start it otherwise?
I'm having this need in a deploy script I wrote for Meteor.
Thanks!
The text was updated successfully, but these errors were encountered: