1 |
Hi everybody! |
2 |
|
3 |
I just installed a ldap server, but no way to get the init script working, |
4 |
while the daemon works perfectly: |
5 |
|
6 |
# /usr/lib/openldap/slapd -u ldap -g ldap |
7 |
|
8 |
runs ok, but the script don't: |
9 |
|
10 |
#!/sbin/runscript |
11 |
# Copyright 1999-2004 Gentoo Foundation |
12 |
# Distributed under the terms of the GNU General Public License v2 |
13 |
# $Header: /var/cvsroot/gentoo-x86/net-nds/openldap/files/slapd-initd2,v 1.1 |
14 |
2010/04/11 15:14:48 jokey Exp $ |
15 |
|
16 |
depend() { |
17 |
need net |
18 |
before dbus hald avahi-daemon |
19 |
provide ldap |
20 |
} |
21 |
|
22 |
start() { |
23 |
ebegin "Starting ldap-server" |
24 |
eval start-stop-daemon --start --pidfile /var/run/openldap/slapd.pid -- |
25 |
exec /usr/lib/openldap/slapd -- -u ldap -g ldap "${OPTS}" |
26 |
eend $? |
27 |
} |
28 |
|
29 |
stop() { |
30 |
ebegin "Stopping ldap-server" |
31 |
start-stop-daemon --stop --signal 2 --quiet --pidfile |
32 |
/var/run/openldap/slapd.pid |
33 |
eend $? |
34 |
} |
35 |
|
36 |
could anybody tell me where the (fatal) differences lie? |
37 |
|
38 |
thanks, |
39 |
Stefano |