mirror of
https://github.com/owntracks/recorder.git
synced 2026-02-13 20:49:51 +00:00
ship README and service file in /usr/share/doc/
This commit is contained in:
@@ -6,6 +6,10 @@ tempdir=$(mktemp -d /tmp/ot-XXX)
|
||||
|
||||
make install DESTDIR=$tempdir
|
||||
|
||||
install -D README.md $tempdir/usr/share/doc/ot-recorder/README.md
|
||||
install -D etc/ot-recorder.service $tempdir/usr/share/doc/ot-recorder/ot-recorder.service
|
||||
|
||||
|
||||
name="ot-recorder"
|
||||
version=$(awk '{print $NF;}' version.h | sed -e 's/"//g' )
|
||||
arch=$(uname -m)
|
||||
|
||||
@@ -6,6 +6,9 @@ tempdir=$(mktemp -d /tmp/ot-XXX)
|
||||
|
||||
make install DESTDIR=$tempdir
|
||||
|
||||
install -D README.md $tempdir/usr/share/doc/ot-recorder/README.md
|
||||
install -D etc/ot-recorder.service $tempdir/usr/share/doc/ot-recorder/ot-recorder.service
|
||||
|
||||
name="ot-recorder"
|
||||
# add -0 to indicate "not in Debian" as per Roger's suggestion
|
||||
version="$(awk '{print $NF;}' version.h | sed -e 's/"//g' )-0"
|
||||
|
||||
@@ -1,20 +1,20 @@
|
||||
# /etc/systemd/system/ot-recorder.service
|
||||
# systemctl enable ot-recorder
|
||||
# systemctl start ot-recorder
|
||||
# systemctl --system daemon-reload
|
||||
# journalctl -f
|
||||
[Unit]
|
||||
Description=OwnTracks Recorder
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
# User=
|
||||
Group=owntracks
|
||||
User=owntracks
|
||||
WorkingDirectory=/
|
||||
Environment='OTR_HOST=127.0.0.1'
|
||||
# Environment='OTR_USER=xxx'
|
||||
ExecStart=/usr/local/sbin/ot-recorder "owntracks/#"
|
||||
# deprecated: use config file
|
||||
# Environment='OTR_USER=xxx'
|
||||
ExecStart=/usr/local/sbin/ot-recorder
|
||||
Restart=always
|
||||
RestartSec=15
|
||||
RestartSec=60
|
||||
StandardOutput=null
|
||||
StandardError=syslog
|
||||
SyslogIdentifier=ot-recorder
|
||||
|
||||
Reference in New Issue
Block a user