summarylogtreecommitdiffstats
path: root/moonfire-nvr.service
blob: 07babcb4addcb9cbd37ddf2ec13480936af56ff7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
[Unit]
Description=Moonfire NVR
After=network-online.target

[Service]
ExecStart=/usr/bin/moonfire-nvr run --ui-dir=/usr/lib/moonfire-nvr/ui
Environment=TZ=:/etc/localtime
Environment=MOONFIRE_FORMAT=google-systemd
Environment=MOONFIRE_LOG=info
Environment=RUST_BACKTRACE=1
Type=simple
User=moonfire-nvr
Nice=-20
Restart=on-abnormal
CPUAccounting=true
MemoryAccounting=true
BlockIOAccounting=true

[Install]
WantedBy=multi-user.target