Move systemd service file and OpenRC init script to files folder

This commit is contained in:
2026-01-18 14:41:19 +01:00
parent 27fd8ab438
commit 7a471a1348
3 changed files with 5 additions and 0 deletions

View File

@@ -0,0 +1,22 @@
#!/sbin/openrc-run
description="DDNS Service - Dynamic DNS Update Service"
: ${USER:=ddns}
: ${GROUP:=ddns}
: ${OPTIONS:=}
command="/usr/bin/ddns-service"
command_args="--daemon ${OPTIONS}"
command_user="${USER}:${GROUP}"
command_background="yes"
pidfile="/run/${RC_SVCNAME}.pid"
depend() {
need net
after dns
}
start_pre() {
checkpath --directory --owner ${USER}:${GROUP} --mode 0750 /var/lib/ddns-service
}