mirror of
https://github.com/ZoneMinder/zoneminder.git
synced 2025-12-23 14:27:59 -05:00
Add example .service file for running go2rtc with ZoneMinder
This commit is contained in:
20
misc/zoneminder.gortc.service
Normal file
20
misc/zoneminder.gortc.service
Normal file
@@ -0,0 +1,20 @@
|
||||
[Unit]
|
||||
Description=go2rtc for use with ZoneMinder
|
||||
After=network.target
|
||||
|
||||
[Service]
|
||||
# Does not have to be www-data. Could also be an unprivileged user
|
||||
User=root
|
||||
Type=simple
|
||||
#Where ever you put go2rtc
|
||||
WorkingDirectory=/opt/go2rtc
|
||||
# This first entry will get overwritten when you add streams and can get wiped out. Place the permanent config in the second file
|
||||
ExecStart=/opt/go2rtc/go2rtc_linux_arm64 -c go2rtc.yaml -c /etc/zm/go2rtc.yaml
|
||||
Restart=always
|
||||
RestartSec=10
|
||||
Environment=TZ=:/etc/localtime
|
||||
TimeoutSec=600
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
|
||||
Reference in New Issue
Block a user