23 lines
414 B
Plaintext
23 lines
414 B
Plaintext
#!/sbin/openrc-run
|
|
|
|
description="DDNS Daemon - Dynamic DNS Update Service"
|
|
|
|
: ${USER:=ddns}
|
|
: ${GROUP:=ddns}
|
|
: ${OPTIONS:=}
|
|
|
|
command="/usr/bin/ddns-daemon"
|
|
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-daemon
|
|
}
|