Add ionos-ddns.service
This commit is contained in:
parent
4c1db7eaa4
commit
471f73f8dd
22
ionos-ddns.service
Normal file
22
ionos-ddns.service
Normal file
|
|
@ -0,0 +1,22 @@
|
||||||
|
[Unit]
|
||||||
|
Description=IONOS DDNS Auto Updater Service
|
||||||
|
After=network-online.target
|
||||||
|
Wants=network-online.target
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
# Service runs as root to handle /var/log permissions simply
|
||||||
|
User=root
|
||||||
|
Group=root
|
||||||
|
|
||||||
|
# Working Directory
|
||||||
|
WorkingDirectory=/opt/ionos-ddns
|
||||||
|
|
||||||
|
# Start Command
|
||||||
|
ExecStart=/usr/bin/python3 /opt/ionos-ddns/update_ddns.py
|
||||||
|
|
||||||
|
# Restart policy (Crash protection)
|
||||||
|
Restart=always
|
||||||
|
RestartSec=10
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=multi-user.target
|
||||||
Loading…
Reference in New Issue
Block a user