systemd service file

This commit is contained in:
Jan-Piet Mens
2015-09-15 13:36:59 +02:00
parent 14fbd033b8
commit 622ba9bcb0

23
etc/ot-recorder.service Normal file
View File

@@ -0,0 +1,23 @@
# /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