diff options
author | V3n3RiX <venerix@koprulu.sector> | 2022-10-03 01:13:47 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2022-10-03 01:13:47 +0100 |
commit | 7748146936014bb364c51e2547982e9f59a5f31a (patch) | |
tree | 07d616b7c4f3455728c1226ab7a989051efc7f6a /net-dns/ddclient/files | |
parent | eb2235d914984bff74c625de4fa4887d4f86f971 (diff) |
gentoo auto-resync : 03:10:2022 - 01:13:47
Diffstat (limited to 'net-dns/ddclient/files')
-rw-r--r-- | net-dns/ddclient/files/ddclient.initd-r7 | 22 | ||||
-rw-r--r-- | net-dns/ddclient/files/ddclient.service-r2 | 13 | ||||
-rw-r--r-- | net-dns/ddclient/files/ddclient.tmpfiles-r1 | 3 |
3 files changed, 38 insertions, 0 deletions
diff --git a/net-dns/ddclient/files/ddclient.initd-r7 b/net-dns/ddclient/files/ddclient.initd-r7 new file mode 100644 index 000000000000..62a6a9da6412 --- /dev/null +++ b/net-dns/ddclient/files/ddclient.initd-r7 @@ -0,0 +1,22 @@ +#!/sbin/openrc-run +# Copyright 1999-2022 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.conf + checkpath -d -m 0700 -o ${command_user}:${command_group} /run/ddclient + checkpath -d -m 0700 -o ${command_user}:${command_group} /var/lib/cache/ddclient +} diff --git a/net-dns/ddclient/files/ddclient.service-r2 b/net-dns/ddclient/files/ddclient.service-r2 new file mode 100644 index 000000000000..2ce4746a6ef2 --- /dev/null +++ b/net-dns/ddclient/files/ddclient.service-r2 @@ -0,0 +1,13 @@ +[Unit] +After=network-online.target +ConditionPathExists=/etc/ddclient.conf +Description=DDclient + +[Service] +ExecStart=/usr/bin/ddclient --foreground +Group=ddclient +Type=simple +User=ddclient + +[Install] +WantedBy=multi-user.target diff --git a/net-dns/ddclient/files/ddclient.tmpfiles-r1 b/net-dns/ddclient/files/ddclient.tmpfiles-r1 new file mode 100644 index 000000000000..eddef80e141e --- /dev/null +++ b/net-dns/ddclient/files/ddclient.tmpfiles-r1 @@ -0,0 +1,3 @@ +z /etc/ddclient.conf 0600 ddclient ddclient - - +d /run/ddclient 0700 ddclient ddclient - - +d /var/lib/cache/ddclient 0700 ddclient ddclient - - |