aboutsummaryrefslogtreecommitdiffstats
path: root/community/inadyn/inadyn.initd
blob: 551aee2fcf6f2c18a1e641fbd587ba9fb821b46c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/sbin/openrc-run
name=$RC_SVCNAME
description="DynDNS client"
cfgfile="/etc/$RC_SVCNAME/$RC_SVCNAME.conf"
command="/usr/sbin/$RC_SVCNAME"
command_args="-f $cfgfile"
command_user="$RC_SVCNAME"
supervisor="supervise-daemon"
command_args_foreground="--foreground"

depend() {
	need net
	use logger dns
	after bootmisc
}

start_pre() {
        checkpath --directory --owner $command_user:$command_user --mode 0755 \
                /run/$RC_SVCNAME /var/cache/$RC_SVCNAME
        $command --check-config -f $cfgfile
}