Skip to content

Conversation

@TechnoDezi
Copy link
Contributor

Using a process manager such as PM2 or embedding the MJPEG server inside another app, the app currently will not shut down correctly and sometimes leaves a process bound to your http server port or it leaves the camera image capture process running. Thus preventing PM2 or your app to start up again.

This change adds the ability to close the camera image capture and the http server gracefully and not leave any used ports when it's shut down or closed. This allows PM2 to re-start the app and recover from any unhanded error.

I have also fixed a bug on the command line parameters where the -s was specified multiple times.

@john-doherty
Copy link
Owner

john-doherty commented Nov 16, 2019

Sorry for the delay reviewing this. Please can you update the readme to reflect the new options and defaults?

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

Successfully merging this pull request may close these issues.

2 participants