Lines 4-9
Link Here
|
4 |
# $Header: /var/cvsroot/gentoo-x86/sys-auth/nss-pam-ldapd/files/nslcd-init,v 1.1 2012/07/24 07:16:14 prometheanfire Exp $ |
4 |
# $Header: /var/cvsroot/gentoo-x86/sys-auth/nss-pam-ldapd/files/nslcd-init,v 1.1 2012/07/24 07:16:14 prometheanfire Exp $ |
5 |
|
5 |
|
6 |
extra_commands="checkconfig" |
6 |
extra_commands="checkconfig" |
|
|
7 |
cfg="/etc/nslcd.conf" |
7 |
|
8 |
|
8 |
depend() { |
9 |
depend() { |
9 |
need net |
10 |
need net |
Lines 11-18
Link Here
|
11 |
} |
12 |
} |
12 |
|
13 |
|
13 |
checkconfig() { |
14 |
checkconfig() { |
14 |
if [ ! -f /etc/nslcd.conf ] ; then |
15 |
if [ ! -f "$cfg" ] ; then |
15 |
eerror "Please create /etc/nslcd.conf" |
16 |
eerror "Please create $cfg" |
16 |
eerror "Example config: /usr/share/nss-ldapd/nslcd.conf" |
17 |
eerror "Example config: /usr/share/nss-ldapd/nslcd.conf" |
17 |
return 1 |
18 |
return 1 |
18 |
fi |
19 |
fi |
Lines 20-25
Link Here
|
20 |
} |
21 |
} |
21 |
|
22 |
|
22 |
start() { |
23 |
start() { |
|
|
24 |
checkpath -q -d /var/run/nslcd -o nslcd:nslcd |
23 |
checkconfig || return $? |
25 |
checkconfig || return $? |
24 |
|
26 |
|
25 |
ebegin "Starting nslcd" |
27 |
ebegin "Starting nslcd" |