Add systemd unit, requirements.txt and venv setup docs
This commit is contained in:
1 parent
8526a1bc39
commit
cb198120ba
4 files changed
+42
-3
No files matched your search
@@ -0,0 +1,16 @@
|
||||
[Unit]
|
||||
Description=Raspberry Pi Camera MJPEG Stream Server
|
||||
After=network.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
User=joachim
|
||||
Group=video
|
||||
WorkingDirectory=/home/joachim/git/raspi-cam
|
||||
ExecStart=/home/joachim/git/raspi-cam/venv/bin/python /home/joachim/git/raspi-cam/app.py
|
||||
Restart=always
|
||||
RestartSec=3
|
||||
Environment=PYTHONUNBUFFERED=1
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
Reference in new issue
Block a user