23 lines
417 B
D
23 lines
417 B
D
#!/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
|
|
}
|