Fix V4L2 mmap capture and service configuration
- capture.py: use mmap.mmap instead of non-existent os.mmap - capture.py: fix v4l2_fourcc() to pass 4 char arguments - camera-webui.service: add Group=video and PATH env var
This commit is contained in:
@@ -6,8 +6,9 @@ Wants=network-online.target
|
||||
[Service]
|
||||
Type=exec
|
||||
User=mikkeli
|
||||
Group=video
|
||||
WorkingDirectory=/home/mikkeli/dev/usb-camera-webui
|
||||
ExecStartPre=/usr/bin/python3 -c "import v4l2"
|
||||
Environment=PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
|
||||
ExecStart=/usr/bin/python3 -m camera.app --host 0.0.0.0 --port 8080
|
||||
Restart=on-failure
|
||||
RestartSec=5
|
||||
|
||||
Reference in New Issue
Block a user