summarylogtreecommitdiffstats
path: root/gandictl-ddns.service
blob: 702ec7e1cfb59f73df2ac62947749773c53ab2f2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
[Unit]
Description=Start Gandi Dynamic DNS Updater
After=network-online.target

[Service]
Type=simple
User=gddns
Group=gddns
DynamicUser=true
EnvironmentFile=/etc/conf.d/gandictl-ddns
ExecStart=/bin/sh -c '/usr/bin/gandictl live-dns apply record ${FQDN} ${NAME} ${TYPE} --rrset-ttl ${TTL} --rrset-values $(curl -s ${IP})'

[Install]
WantedBy=multi-user.target