Add systemd service file
This commit is contained in:
parent
a6cd81e5f3
commit
f2f72197ce
21
azure-dns-update.service
Normal file
21
azure-dns-update.service
Normal 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
|
Loading…
Reference in New Issue
Block a user