From 622ba9bcb03e4da1e3d03675cb82be85ca4627d2 Mon Sep 17 00:00:00 2001 From: Jan-Piet Mens Date: Tue, 15 Sep 2015 13:36:59 +0200 Subject: [PATCH] systemd service file --- etc/ot-recorder.service | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 etc/ot-recorder.service diff --git a/etc/ot-recorder.service b/etc/ot-recorder.service new file mode 100644 index 0000000..7303a69 --- /dev/null +++ b/etc/ot-recorder.service @@ -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