1 |
thanks Denis, |
2 |
I already tried and it was working, by removing "${OPTS}" (in my case I |
3 |
replaced with -s 256, the debug option). |
4 |
|
5 |
I could be wrong, but: |
6 |
1) should the init scripts be running 'off the shelf'? |
7 |
2) why openldap does not log in /var/log by default? It seems I will have to |
8 |
fight with syslog and ldap configuration files.. |
9 |
3) easy way, to remove "${OPTS}". but why is it there? |
10 |
|
11 |
|
12 |
On Tuesday 12 October 2010 08:59:41 Denis Bondar wrote: |
13 |
> May be in ${OPTS}? |
14 |
> |
15 |
> Try to look /etc/conf.d/slapd |
16 |
> What's the logs says? |
17 |
> |
18 |
> 2010/10/12 <tangonights@×××××.it> |
19 |
> |
20 |
> > Hi everybody! |
21 |
> > |
22 |
> > I just installed a ldap server, but no way to get the init script |
23 |
> > working, while the daemon works perfectly: |
24 |
> > |
25 |
> > # /usr/lib/openldap/slapd -u ldap -g ldap |
26 |
> > |
27 |
> > runs ok, but the script don't: |
28 |
> > |
29 |
> > #!/sbin/runscript |
30 |
> > # Copyright 1999-2004 Gentoo Foundation |
31 |
> > # Distributed under the terms of the GNU General Public License v2 |
32 |
> > # $Header: /var/cvsroot/gentoo-x86/net-nds/openldap/files/slapd-initd2,v |
33 |
> > 1.1 |
34 |
> > 2010/04/11 15:14:48 jokey Exp $ |
35 |
> > |
36 |
> > depend() { |
37 |
> > |
38 |
> > need net |
39 |
> > before dbus hald avahi-daemon |
40 |
> > provide ldap |
41 |
> > |
42 |
> > } |
43 |
> > |
44 |
> > start() { |
45 |
> > |
46 |
> > ebegin "Starting ldap-server" |
47 |
> > eval start-stop-daemon --start --pidfile |
48 |
> > /var/run/openldap/slapd.pid |
49 |
> > |
50 |
> > -- |
51 |
> > exec /usr/lib/openldap/slapd -- -u ldap -g ldap "${OPTS}" |
52 |
> > |
53 |
> > eend $? |
54 |
> > |
55 |
> > } |
56 |
> > |
57 |
> > stop() { |
58 |
> > |
59 |
> > ebegin "Stopping ldap-server" |
60 |
> > start-stop-daemon --stop --signal 2 --quiet --pidfile |
61 |
> > |
62 |
> > /var/run/openldap/slapd.pid |
63 |
> > |
64 |
> > eend $? |
65 |
> > |
66 |
> > } |
67 |
> > |
68 |
> > could anybody tell me where the (fatal) differences lie? |
69 |
> > |
70 |
> > thanks, |
71 |
> > Stefano |