Skip to content
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

Stopped services should not start on reboot #98

Open
geoffsimons opened this issue Nov 16, 2017 · 1 comment
Open

Stopped services should not start on reboot #98

geoffsimons opened this issue Nov 16, 2017 · 1 comment

Comments

@geoffsimons
Copy link

I had a recent server instance reboot and from what I can tell, it restarted every service I created with forever-service install. Ideally, if I stop a service, I don't want it to restart unless I manually restart it. If the service was running at the time of reboot, I want it to restart.

@geoffsimons
Copy link
Author

Seems like the current answer would be to delete the service, rather than just stopping it. I may end up making start and stop scripts that would install && start and stop && delete, respectively, probably with a short pause between commands. I may also just need to research the command line calls to disable a service on my distro. Bottom line is that I'm not comfortable leaving a service stopped, now that I know it will restart. In my particular case, I had multiple http services, and only the first one could bind to port 80, leaving all the other services in an infinite loop of trying to start and failing. I would say that should stop after some number of retries, but I realize the whole point is to never stop.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant