Rename OpenRC init script and confd file and add Gentoo ebuild
This commit is contained in:
22
files/ddns-service-openrc.initd
Normal file
22
files/ddns-service-openrc.initd
Normal 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
|
||||
}
|
||||
Reference in New Issue
Block a user