OliverF / mjpeg-relay

Relays any given MJPEG stream
MIT License
66 stars 23 forks source link

How can I run it at startup? #22

Open martinb07 opened 6 years ago

martinb07 commented 6 years ago

Hi How can I run the script on startup?

Thanks. Martin

masterxq commented 1 year ago

It needs a stdin stream. You can start it with /etc/local if this file exists on your system:

sleep 99999999 | python relay.py ... &> /tmp/cam.log &

the sleep command is a simple hack to provide a stdin stream.