aboutsummaryrefslogtreecommitdiffstats
path: root/community/inadyn/inadyn.initd
diff options
context:
space:
mode:
Diffstat (limited to 'community/inadyn/inadyn.initd')
-rw-r--r--community/inadyn/inadyn.initd21
1 files changed, 21 insertions, 0 deletions
diff --git a/community/inadyn/inadyn.initd b/community/inadyn/inadyn.initd
new file mode 100644
index 00000000000..551aee2fcf6
--- /dev/null
+++ b/community/inadyn/inadyn.initd
@@ -0,0 +1,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
+}