From 4f2d7949f03e1c198bc888f2d05f421d35c57e21 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Mon, 9 Oct 2017 18:53:29 +0100 Subject: reinit the tree, so we can have metadata --- sys-apps/unscd/files/unscd-tmpfiles.conf | 1 + sys-apps/unscd/files/unscd.initd-r1 | 15 +++++++++++++++ sys-apps/unscd/files/unscd.service | 18 ++++++++++++++++++ 3 files changed, 34 insertions(+) create mode 100644 sys-apps/unscd/files/unscd-tmpfiles.conf create mode 100644 sys-apps/unscd/files/unscd.initd-r1 create mode 100644 sys-apps/unscd/files/unscd.service (limited to 'sys-apps/unscd/files') diff --git a/sys-apps/unscd/files/unscd-tmpfiles.conf b/sys-apps/unscd/files/unscd-tmpfiles.conf new file mode 100644 index 000000000000..b5f25f6c5bb1 --- /dev/null +++ b/sys-apps/unscd/files/unscd-tmpfiles.conf @@ -0,0 +1 @@ +d /run/nscd 0755 root root - diff --git a/sys-apps/unscd/files/unscd.initd-r1 b/sys-apps/unscd/files/unscd.initd-r1 new file mode 100644 index 000000000000..f49184724a41 --- /dev/null +++ b/sys-apps/unscd/files/unscd.initd-r1 @@ -0,0 +1,15 @@ +#!/sbin/openrc-run +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +name="Name Service Cache Daemon (unscd)" +command="/usr/sbin/unscd" +pidfile="/run/nscd/nscd.pid" + +depend() { + use dns ldap net slapd +} + +start_pre() { + checkpath -d --quiet --mode 755 /run/nscd +} diff --git a/sys-apps/unscd/files/unscd.service b/sys-apps/unscd/files/unscd.service new file mode 100644 index 000000000000..d7c932b9587d --- /dev/null +++ b/sys-apps/unscd/files/unscd.service @@ -0,0 +1,18 @@ +[Unit] +Description=Name Service Cache Daemon (unscd) +Wants=ldap.service network-online.target slapd.service +After=ldap.service network-online.target nss-lookup.target nss-user-lookup.target slapd.service + +[Service] +Type=forking +PIDFile=/run/nscd/nscd.pid +ExecStart=/usr/sbin/unscd +ExecStop=/usr/sbin/nscd --shutdown +ExecReload=/usr/sbin/nscd -i passwd +ExecReload=/usr/sbin/nscd -i group +ExecReload=/usr/sbin/nscd -i hosts +ExecReload=/usr/sbin/nscd -i services +Restart=always + +[Install] +WantedBy=multi-user.target -- cgit v1.2.3