fixing service
This commit is contained in:
parent
f961bc6c5a
commit
b761078a32
1 changed files with 6 additions and 23 deletions
|
|
@ -1,31 +1,14 @@
|
||||||
[Unit]
|
[Unit]
|
||||||
Description=Porkbun Dynamic DNS Update
|
Description=Porkbun Dynamic DNS Update
|
||||||
Documentation=file:///home/kacper/Documents/platformIO/email/porkbun/README.md
|
After=network.target
|
||||||
After=network-online.target
|
Wants=network.target
|
||||||
Wants=network-online.target
|
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
Type=oneshot
|
Type=oneshot
|
||||||
User=kacper
|
User=porkbun-ddns-user
|
||||||
Group=kacper
|
Group=porkbun-ddns-group
|
||||||
WorkingDirectory=/home/kacper/Documents/platformIO/email/porkbun
|
WorkingDirectory=/opt/porkbun-ddns
|
||||||
ExecStart=/home/kacper/Documents/platformIO/email/porkbun/updateDNS.sh
|
ExecStart=/opt/porkbun-ddns/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
|
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=multi-user.target
|
WantedBy=multi-user.target
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue