29 lines
529 B
Plaintext
29 lines
529 B
Plaintext
#!/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
|
|
}
|
|
|
|
reload() {
|
|
ebegin "Reloading ${RC_SVCNAME}"
|
|
start-stop-daemon --signal HUP --pidfile "${pidfile}"
|
|
eend $?
|
|
}
|