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

Restart or exit when command exits? #5

Open
sussycatgirl opened this issue Sep 29, 2023 · 0 comments
Open

Restart or exit when command exits? #5

sussycatgirl opened this issue Sep 29, 2023 · 0 comments

Comments

@sussycatgirl
Copy link

Hi!

I'm trying to stream a v4l2 device, and I run mjpeg-server in a systemd service that starts after another service that writes to the video device starts. Sometimes I run into a race condition where the command passed to the mjpeg server can't yet access the camera and crashes. When that happens, I see exit status 255 logged, but from what I can tell the program makes no effort to restart it.

As a workaround I can pass something like bash -c 'while [[ true ]]; do gst-launch-1.0 ....; done', but I think there should be an option for mjpeg-server to either restart the process or also exit when the process exits (the latter would let systemd handle the restarting in my use case).

Cheers!

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