diff --git a/porkbun-ddns.service b/porkbun-ddns.service index a834a15..f7591b4 100644 --- a/porkbun-ddns.service +++ b/porkbun-ddns.service @@ -1,31 +1,14 @@ [Unit] Description=Porkbun Dynamic DNS Update -Documentation=file:///home/kacper/Documents/platformIO/email/porkbun/README.md -After=network-online.target -Wants=network-online.target +After=network.target +Wants=network.target [Service] Type=oneshot -User=kacper -Group=kacper -WorkingDirectory=/home/kacper/Documents/platformIO/email/porkbun -ExecStart=/home/kacper/Documents/platformIO/email/porkbun/updateDNS.sh - -# Security hardening -PrivateTmp=yes -NoNewPrivileges=yes -ProtectSystem=strict -ProtectHome=read-only -ReadWritePaths=/home/kacper/Documents/platformIO/email/porkbun - -# Logging -StandardOutput=journal -StandardError=journal -SyslogIdentifier=porkbun-ddns - -# Restart on failure -Restart=on-failure -RestartSec=30 +User=porkbun-ddns-user +Group=porkbun-ddns-group +WorkingDirectory=/opt/porkbun-ddns +ExecStart=/opt/porkbun-ddns/updateDNS.sh [Install] WantedBy=multi-user.target