Add systemd scripts and instructions

This commit is contained in:
2020-06-14 08:46:46 -05:00
parent 48eae1ee36
commit 178173b628
4 changed files with 60 additions and 1 deletions

19
Makefile Normal file
View File

@@ -0,0 +1,19 @@
install:
cp hetzner-ddns.py /usr/local/bin
cp etc/hetzner-ddns.conf.example /etc
cp etc/systemd/hetzner-ddns.service /etc/systemd/system/
uninstall:
rm /usr/local/bin/hetzner-ddns.py
rm /etc/hetzner-ddns.conf.example
rm /etc/systemd/system/hetzner-ddns.service
enable:
systemctl enable hetzner-ddns
disable:
systemctl disable hetzner-ddns
start:
systemctl start hetzner-ddns