diff options
author | Conrad Kostecki <conrad@kostecki.com> | 2018-12-02 19:57:40 +0100 |
---|---|---|
committer | Aaron W. Swenson <titanofold@gentoo.org> | 2018-12-02 18:38:01 -0500 |
commit | c5a1aea329a52da62c39184d19935590b5c38e57 (patch) | |
tree | d11837263449e20956bc94cfeddfde39ce26b7ed /net-dns/ddclient/files | |
parent | app-xemacs/xemacs-packages-all: Remove old (diff) | |
download | gentoo-c5a1aea329a52da62c39184d19935590b5c38e57.tar.gz gentoo-c5a1aea329a52da62c39184d19935590b5c38e57.tar.bz2 gentoo-c5a1aea329a52da62c39184d19935590b5c38e57.zip |
net-dns/ddclient: add need net for init script
Also bumped to EAPI=7.
Closes: https://bugs.gentoo.org/672338
Package-Manager: Portage-2.3.52, Repoman-2.3.12
Signed-off-by: Conrad Kostecki <conrad@kostecki.com>
Closes: https://github.com/gentoo/gentoo/pull/10542
Signed-off-by: Aaron W. Swenson <titanofold@gentoo.org>
Diffstat (limited to 'net-dns/ddclient/files')
-rw-r--r-- | net-dns/ddclient/files/ddclient.initd-r6 | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/net-dns/ddclient/files/ddclient.initd-r6 b/net-dns/ddclient/files/ddclient.initd-r6 new file mode 100644 index 000000000000..7bdc433d1ed1 --- /dev/null +++ b/net-dns/ddclient/files/ddclient.initd-r6 @@ -0,0 +1,22 @@ +#!/sbin/openrc-run +# Copyright 1999-2018 Gentoo Authors +# 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() { + need net + 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 +} |