summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick McLean <chutzpah@gentoo.org>2017-07-31 15:58:54 -0700
committerPatrick McLean <chutzpah@gentoo.org>2017-07-31 16:01:23 -0700
commit1756fc0f53d40072e7b634ed3baf8a87152fd6af (patch)
tree1ea72fa12aabb16ddd9d6507e24da0278f6e80e8 /sys-auth/nss-pam-ldapd/files/pynslcd.initd
parentmedia-libs/libvisio: stable 0.1.5-r1 for ppc, bug #622876 (diff)
downloadgentoo-1756fc0f53d40072e7b634ed3baf8a87152fd6af.tar.gz
gentoo-1756fc0f53d40072e7b634ed3baf8a87152fd6af.tar.bz2
gentoo-1756fc0f53d40072e7b634ed3baf8a87152fd6af.zip
sys-auth/nss-pam-ldapd: Revision bump, make python deps optional
Diffstat (limited to 'sys-auth/nss-pam-ldapd/files/pynslcd.initd')
-rw-r--r--sys-auth/nss-pam-ldapd/files/pynslcd.initd28
1 files changed, 28 insertions, 0 deletions
diff --git a/sys-auth/nss-pam-ldapd/files/pynslcd.initd b/sys-auth/nss-pam-ldapd/files/pynslcd.initd
new file mode 100644
index 000000000000..7b6540810aed
--- /dev/null
+++ b/sys-auth/nss-pam-ldapd/files/pynslcd.initd
@@ -0,0 +1,28 @@
+#!/sbin/openrc-run
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+command=/usr/sbin/pynslcd
+pidfile=/var/run/nslcd/nslcd.pid
+extra_commands="checkconfig"
+cfg="/etc/nslcd.conf"
+
+depend() {
+ need net
+ use dns logger
+}
+
+checkconfig() {
+ if [ ! -f "$cfg" ] ; then
+ eerror "Please create $cfg"
+ eerror "Example config: /usr/share/nss-ldapd/nslcd.conf"
+ return 1
+ fi
+ return 0
+}
+
+start_pre() {
+ checkpath -q -d /run/nslcd -o nslcd:nslcd
+ checkconfig
+ return $?
+}