mirror of
https://github.com/owntracks/recorder.git
synced 2024-11-16 10:28:27 -07:00
24 lines
474 B
SYSTEMD
24 lines
474 B
SYSTEMD
|
# /etc/systemd/system/ot-recorder.service
|
||
|
# systemctl enable ot-recorder
|
||
|
# systemctl start ot-recorder
|
||
|
# journalctl -f
|
||
|
[Unit]
|
||
|
Description=OwnTracks Recorder
|
||
|
|
||
|
[Service]
|
||
|
Type=simple
|
||
|
# User=
|
||
|
Group=owntracks
|
||
|
WorkingDirectory=/
|
||
|
Environment='OTR_HOST=127.0.0.1'
|
||
|
# Environment='OTR_USER=xxx'
|
||
|
ExecStart=/usr/local/sbin/ot-recorder "owntracks/#"
|
||
|
Restart=always
|
||
|
RestartSec=15
|
||
|
StandardOutput=null
|
||
|
StandardError=syslog
|
||
|
SyslogIdentifier=ot-recorder
|
||
|
|
||
|
[Install]
|
||
|
WantedBy=multi-user.target
|