summarylogtreecommitdiffstats
path: root/ddns-go.user.service
blob: ebd70ec65fd95de48b6c90c63c077d4a30ab184f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
[Unit]
Description = A simple, easy-to-use ddns service.
Wants = network-online.target
After = network-online.target

[Service]
EnvironmentFile = -%h/.config/ddns-go/ddns-go.env
ExecStartPre = /usr/bin/mkdir -p %h/.config/ddns-go ; /usr/bin/touch %h/.config/ddns-go/config.yml
ExecStart = /usr/bin/ddns-go -c %h/.config/ddns-go/config.yml $EXTRA_OPTS
Restart = always
RestartSec = 5

[Install]
WantedBy = default.target