summarylogtreecommitdiffstats
path: root/ddns-go.user.service
diff options
context:
space:
mode:
authordevome2024-04-10 23:34:04 +0800
committerdevome2024-04-10 23:34:04 +0800
commit23011418d71075239c763878bfcf465eab90e92e (patch)
treed559f6789805e106d1137280d84d744b2ebef8e9 /ddns-go.user.service
parent32b1b40de305b4a28a38e8eb60024f5e049fc780 (diff)
downloadaur-23011418d71075239c763878bfcf465eab90e92e.tar.gz
ddns-go: 6.3.2-2
Diffstat (limited to 'ddns-go.user.service')
-rw-r--r--ddns-go.user.service5
1 files changed, 3 insertions, 2 deletions
diff --git a/ddns-go.user.service b/ddns-go.user.service
index 065711198530..ebd70ec65fd9 100644
--- a/ddns-go.user.service
+++ b/ddns-go.user.service
@@ -4,8 +4,9 @@ Wants = network-online.target
After = network-online.target
[Service]
-ExecStart = /usr/bin/ddns-go -c .config/ddns-go/config.yml
-ExecStartPost = /usr/bin/mkdir -p .config/ddns-go
+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