aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorChristian Weiske <cweiske@cweiske.de>2023-11-29 22:19:10 +0100
committerChristian Weiske <cweiske@cweiske.de>2023-11-29 22:19:10 +0100
commitd97d49d593b230f6f3e1266bde14bfa8d04f3c24 (patch)
tree73204e82f00cfd4f392bbe1ae8b5b0af3fc1a7af /Makefile
parent76584f79d1ab64fbda7d67aad8ec38a4ee5a17ef (diff)
downloadusb-wde1-tools-d97d49d593b230f6f3e1266bde14bfa8d04f3c24.tar.gz
usb-wde1-tools-d97d49d593b230f6f3e1266bde14bfa8d04f3c24.zip
systemd service file
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile13
1 files changed, 8 insertions, 5 deletions
diff --git a/Makefile b/Makefile
index 4cba154..b07409a 100644
--- a/Makefile
+++ b/Makefile
@@ -3,16 +3,19 @@ PLUGINS = /etc/munin/plugins
install: lninstall
lninstall:
- ln -sf $(abspath init.d/usb-wde-log) /etc/init.d
- insserv usb-wde-log
+ ln -sf $(abspath systemd/usb-wde1-log.service) /etc/systemd/system/
+ systemctl daemon-reload
+ systemctl start usb-wde1-log
+ systemctl enable usb-wde1-log
ln -sf $(abspath munin/usb-wde1_) $(PLUGINS)/usb-wde1_temperature
ln -sf $(abspath munin/usb-wde1_) $(PLUGINS)/usb-wde1_humidity
uninstall:
- service usb-wde-log stop
- insserv -r usb-wde-log
- rm -f /etc/init.d/usb-wde-log
+ systemctl stop usb-wde1-log
+ systemctl disable usb-wde1-log
+ rm /etc/systemd/system/usb-wde1-log.service
+ systemctl daemon-reload
rm -f $(PLUGINS)/usb-wde1_temperature
rm -f $(PLUGINS)/usb-wde1_humidity