Closed StevenCregan closed 4 years ago
I think I'm more familiar with init.d
, to be honest with something like a sudo service webcamd start
sort of interface. It would likely be more in tune with the original from OctoPi's image as seen here.
Yeah, the webcamd service is a lot more robust, and certainly better thought out; This is just a lightweight suggestion I whipped up in the middle of the night š I've just been seeing more and more things on Debian systems moving towards systemd, so that's what I've been trying to familiarize myself with. Figured it'd be worth sharing, even if not necessary š
Thanks for the suggestion and it's good to know each one that's available. What I could do is close this issue and create a link to it in the README.
Sounds good š
I prefer making an easily restartable service to help with tuning resolution/framerate options My config is similar to this:
Filename:
mjpg_streamer.service
Location:/lib/systemd/system/
Contents:
Link by running:
sudo ln -s /lib/systemd/system/mjpg_streamer.service /etc/systemd/system/mjpg_streamer.service
Refresh systemd:sudo systemctl daemon-reload
Enable service:sudo systemctl enable mjpg_streamer
Start service for the first time:sudo systemctl start mjpg_streamer