diff options
Diffstat (limited to 'net-dns/ddclient/files/ddclient.initd-r5')
-rw-r--r-- | net-dns/ddclient/files/ddclient.initd-r5 | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/net-dns/ddclient/files/ddclient.initd-r5 b/net-dns/ddclient/files/ddclient.initd-r5 new file mode 100644 index 000000000000..a2284a27c1ff --- /dev/null +++ b/net-dns/ddclient/files/ddclient.initd-r5 @@ -0,0 +1,21 @@ +#!/sbin/openrc-run +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +name="DDclient" +pidfile="/run/ddclient/${RC_SVCNAME}.pid" + +command="/usr/bin/ddclient" +command_args="-pid ${pidfile}" +command_group="ddclient" +command_user="ddclient" + +depend() { + use dns logger +} + +start_pre() { + checkpath -f -m 0600 -o ${command_user}:${command_group} /etc/ddclient/ddclient.conf + checkpath -d -m 0700 -o ${command_user}:${command_group} /run/ddclient + checkpath -d -m 0700 -o ${command_user}:${command_group} /var/cache/ddclient +} |