--- a/etc/init.d/nslcd 2013-02-05 14:36:17.694164349 +0100 +++ b/etc/init.d/nslcd 2013-02-05 14:57:26.792315205 +0100 @@ -4,6 +4,7 @@ # $Header: /var/cvsroot/gentoo-x86/sys-auth/nss-pam-ldapd/files/nslcd-init,v 1.1 2012/07/24 07:16:14 prometheanfire Exp $ extra_commands="checkconfig" +cfg="/etc/nslcd.conf" depend() { need net @@ -11,8 +12,8 @@ } checkconfig() { - if [ ! -f /etc/nslcd.conf ] ; then - eerror "Please create /etc/nslcd.conf" + if [ ! -f "$cfg" ] ; then + eerror "Please create $cfg" eerror "Example config: /usr/share/nss-ldapd/nslcd.conf" return 1 fi @@ -20,6 +21,7 @@ } start() { + checkpath -q -d /var/run/nslcd -o nslcd:nslcd checkconfig || return $? ebegin "Starting nslcd"