install unit file into /etc/systemd/system/ot-recorder.service during fpm

closes #514
This commit is contained in:
Jan-Piet Mens
2024-12-02 08:27:34 +01:00
parent a529d6501d
commit 3958c9ec69
4 changed files with 4 additions and 4 deletions

View File

@@ -7,7 +7,7 @@ tempdir=$(mktemp -d /tmp/ot-XXX)
make install DESTDIR=$tempdir
install -D -m644 README.md $tempdir/usr/share/doc/ot-recorder/README.md
install -D -m644 etc/ot-recorder.service $tempdir/usr/share/doc/ot-recorder/ot-recorder.service
install -D -m644 etc/ot-recorder.service $tempdir/etc/systemd/system/ot-recorder.service
name="ot-recorder"
# add -0 to indicate "not in Debian" as per Roger's suggestion

View File

@@ -26,7 +26,7 @@ case "$1" in
if [ -x /bin/systemctl ]; then
install -m644 /usr/share/doc/ot-recorder/ot-recorder.service /etc/systemd/system/ot-recorder.service
# fpm installed unit file into /etc/systemd/system/ot-recorder.service
systemctl --system daemon-reload || exit 0 # catch failure in docker setup
systemctl restart ot-recorder || exit 0
fi

View File

@@ -7,7 +7,7 @@ tempdir=$(mktemp -d /tmp/ot-XXX)
make install DESTDIR=$tempdir
install -D -m644 README.md $tempdir/usr/share/doc/ot-recorder/README.md
install -D -m644 etc/ot-recorder.service $tempdir/usr/share/doc/ot-recorder/ot-recorder.service
install -D -m644 etc/ot-recorder.service $tempdir/etc/systemd/system/ot-recorder.service
name="ot-recorder"
# add -0 to indicate "not in Debian" as per Roger's suggestion

View File

@@ -26,7 +26,7 @@ case "$1" in
if [ -x /bin/systemctl ]; then
install -m644 /usr/share/doc/ot-recorder/ot-recorder.service /etc/systemd/system/ot-recorder.service
# fpm installed unit file into /etc/systemd/system/ot-recorder.service
systemctl --system daemon-reload || exit 0 # catch failure in docker setup
systemctl restart ot-recorder || exit 0
fi