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