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

Changes for running as a (background) service #27

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

Kartoffel
Copy link

By default, relay.py will wait for user input by reading from the terminal.
This breaks catastrophically when the process is not attached to a terminal, e.g. when started as a systemd unit (#17).

I've changed relay.py so that it waits for signals. This works both for keyboard events as well as detached from a terminal. Additionally, a sample systemd unit is provided.

@dattasaurabh82
Copy link

Yeah tried different variations of background service, doesn't work unfortunately.
It starts, Runs, then exits when run from systemd service.

Also when run normally from terminal, for the first time, if the MJPEG stream is DOWN (the link of whose id passed to the script when it was ran), doesn't persistently keep trying.

But if the Stream is UP, it connects, then if I kill the stream , it keeps persistently trying and when the link is UP again, it connect successfully.

Either way, impossible to run as a service.

Can this be solved?

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