mirror of
https://github.com/owntracks/recorder.git
synced 2026-03-29 23:47:04 +00:00
systemd service file
This commit is contained in:
23
etc/ot-recorder.service
Normal file
23
etc/ot-recorder.service
Normal 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
|
||||
Reference in New Issue
Block a user