git.cweiske.de
/
usb-wde1-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
systemd service file
[usb-wde1-tools.git]
/
Makefile
diff --git
a/Makefile
b/Makefile
index 4cba1540e1da138bef2c6b175f1627a7a6f19090..b07409acb1d07081a833590ac3e04ec67298adec 100644
(file)
--- a/
Makefile
+++ b/
Makefile
@@
-3,16
+3,19
@@
PLUGINS = /etc/munin/plugins
install: lninstall
lninstall:
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:
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
rm -f $(PLUGINS)/usb-wde1_temperature
rm -f $(PLUGINS)/usb-wde1_humidity