File tree Expand file tree Collapse file tree 2 files changed +32
-1
lines changed
Expand file tree Collapse file tree 2 files changed +32
-1
lines changed Original file line number Diff line number Diff line change @@ -38,9 +38,25 @@ If you get an error message
3838
3939you are probably already running a stream. If you are on OctoPi with
4040you can stop the preinstalled mjpg-streamer.
41-
41+
4242 sudo systemctl stop webcamd
4343
44+ ### Run at startup (as service)
45+
46+ Remove the octopi included mjpg webcamd.service
47+
48+ - ` sudo systemctl stop webcamd `
49+ - ` sudo systemctl disable webcamd `
50+ - Backup: ` sudo mv /etc/systemd/system/webcamd.service /home/pi/mjpg-streamer/ `
51+
52+ Install new service (this asumes you cloned to ~ /OctoStreamer, adjust paths
53+ and webcamd.service otherwise)
54+
55+ - ` sudo ln -s -T /home/pi/OctoStreamer/webcamd.service /etc/systemd/system/webcamd.service `
56+ - ` sudo systemctl daemon-reload `
57+ - ` sudo systemctl enable webcamd `
58+ - ` sudo systemctl start webcamd.service `
59+
4460### Test
4561
4662- Go to http://localhost :<port > in your browser. In Config, it should show your
Original file line number Diff line number Diff line change 1+ [Unit]
2+ Description =the OctoStreamer webcam daemon
3+ After =multi-user.target
4+
5+ [Service]
6+ WorkingDirectory =/home/pi/OctoStreamer
7+ User =pi
8+ Environment ="CAMERA=v4l2"
9+ ExecStart =/usr/bin/python3 /home/pi/OctoStreamer/app.py
10+ Restart =always
11+ Type =simple
12+ RestartSec =1
13+
14+ [Install]
15+ WantedBy =multi-user.target
You can’t perform that action at this time.
0 commit comments