Different install target for user systemd service unit
All checks were successful
Run Tests on Code / run-tests (push) Successful in 13s

This commit is contained in:
Neshura 2023-12-29 02:08:07 +01:00
parent ffcaeb9d4b
commit b9419a5446
Signed by: Neshura
GPG key ID: B6983AAA6B9A7A6C
2 changed files with 14 additions and 1 deletions

View file

@ -17,7 +17,7 @@ assets = [
"755",
],
[
"debian/cloudflare-dns-updater.service",
"debian/cloudflare-dns-updater-user.service",
"/lib/systemd/user/cloudflare-dns-updater.service",
"755",
],

View file

@ -0,0 +1,13 @@
[Unit]
Description="Application for automatically updating Cloudflare DNS records"
After=syslog.target
After=network-online.target
[Service]
Type=simple
ExecStart=/usr/local/bin/cloudflare-dns-updater
Restart=always
RestartSec=3
[Install]
WantedBy=default.target