Add systemd service file

This commit is contained in:
Mike Heier 2022-08-21 08:42:04 -04:00
parent a6cd81e5f3
commit f2f72197ce

21
azure-dns-update.service Normal file
View File

@ -0,0 +1,21 @@
[Unit]
Description=Azure DNS Update Service
ConditionPathExists=/usr/local/bin/update-dns.sh
After=network-online.service
Wants=network-online.service
[Service]
#WorkingDirectory=/usr/local/bin
EnvironmentFile=/etc/azure-dns-update/.env
ExecStart=/usr/local/bin/update-dns.sh
Restart=always
RestartSec=60
Type=idle
StandardOutput=syslog
StandardError=syslog
SyslogIdentifier=azure-dns-update
[Install]
WantedBy=multi-user.target