* [gentoo-server] openldap init script vs slapd daemon
@ 2010-10-11 23:18 tangonights
2010-10-12 6:59 ` Denis Bondar
0 siblings, 1 reply; 3+ messages in thread
From: tangonights @ 2010-10-11 23:18 UTC (permalink / raw
To: gentoo-server
Hi everybody!
I just installed a ldap server, but no way to get the init script working,
while the daemon works perfectly:
# /usr/lib/openldap/slapd -u ldap -g ldap
runs ok, but the script don't:
#!/sbin/runscript
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-nds/openldap/files/slapd-initd2,v 1.1
2010/04/11 15:14:48 jokey Exp $
depend() {
need net
before dbus hald avahi-daemon
provide ldap
}
start() {
ebegin "Starting ldap-server"
eval start-stop-daemon --start --pidfile /var/run/openldap/slapd.pid --
exec /usr/lib/openldap/slapd -- -u ldap -g ldap "${OPTS}"
eend $?
}
stop() {
ebegin "Stopping ldap-server"
start-stop-daemon --stop --signal 2 --quiet --pidfile
/var/run/openldap/slapd.pid
eend $?
}
could anybody tell me where the (fatal) differences lie?
thanks,
Stefano
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [gentoo-server] openldap init script vs slapd daemon
2010-10-11 23:18 [gentoo-server] openldap init script vs slapd daemon tangonights
@ 2010-10-12 6:59 ` Denis Bondar
2010-10-12 8:25 ` tangonights
0 siblings, 1 reply; 3+ messages in thread
From: Denis Bondar @ 2010-10-12 6:59 UTC (permalink / raw
To: gentoo-server
[-- Attachment #1: Type: text/plain, Size: 1169 bytes --]
May be in ${OPTS}?
Try to look /etc/conf.d/slapd
What's the logs says?
2010/10/12 <tangonights@yahoo.it>
> Hi everybody!
>
> I just installed a ldap server, but no way to get the init script working,
> while the daemon works perfectly:
>
> # /usr/lib/openldap/slapd -u ldap -g ldap
>
> runs ok, but the script don't:
>
> #!/sbin/runscript
> # Copyright 1999-2004 Gentoo Foundation
> # Distributed under the terms of the GNU General Public License v2
> # $Header: /var/cvsroot/gentoo-x86/net-nds/openldap/files/slapd-initd2,v
> 1.1
> 2010/04/11 15:14:48 jokey Exp $
>
> depend() {
> need net
> before dbus hald avahi-daemon
> provide ldap
> }
>
> start() {
> ebegin "Starting ldap-server"
> eval start-stop-daemon --start --pidfile /var/run/openldap/slapd.pid
> --
> exec /usr/lib/openldap/slapd -- -u ldap -g ldap "${OPTS}"
> eend $?
> }
>
> stop() {
> ebegin "Stopping ldap-server"
> start-stop-daemon --stop --signal 2 --quiet --pidfile
> /var/run/openldap/slapd.pid
> eend $?
> }
>
> could anybody tell me where the (fatal) differences lie?
>
> thanks,
> Stefano
>
>
--
Kind regards,
Denis Bondar
[-- Attachment #2: Type: text/html, Size: 1645 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [gentoo-server] openldap init script vs slapd daemon
2010-10-12 6:59 ` Denis Bondar
@ 2010-10-12 8:25 ` tangonights
0 siblings, 0 replies; 3+ messages in thread
From: tangonights @ 2010-10-12 8:25 UTC (permalink / raw
To: gentoo-server
thanks Denis,
I already tried and it was working, by removing "${OPTS}" (in my case I
replaced with -s 256, the debug option).
I could be wrong, but:
1) should the init scripts be running 'off the shelf'?
2) why openldap does not log in /var/log by default? It seems I will have to
fight with syslog and ldap configuration files..
3) easy way, to remove "${OPTS}". but why is it there?
On Tuesday 12 October 2010 08:59:41 Denis Bondar wrote:
> May be in ${OPTS}?
>
> Try to look /etc/conf.d/slapd
> What's the logs says?
>
> 2010/10/12 <tangonights@yahoo.it>
>
> > Hi everybody!
> >
> > I just installed a ldap server, but no way to get the init script
> > working, while the daemon works perfectly:
> >
> > # /usr/lib/openldap/slapd -u ldap -g ldap
> >
> > runs ok, but the script don't:
> >
> > #!/sbin/runscript
> > # Copyright 1999-2004 Gentoo Foundation
> > # Distributed under the terms of the GNU General Public License v2
> > # $Header: /var/cvsroot/gentoo-x86/net-nds/openldap/files/slapd-initd2,v
> > 1.1
> > 2010/04/11 15:14:48 jokey Exp $
> >
> > depend() {
> >
> > need net
> > before dbus hald avahi-daemon
> > provide ldap
> >
> > }
> >
> > start() {
> >
> > ebegin "Starting ldap-server"
> > eval start-stop-daemon --start --pidfile
> > /var/run/openldap/slapd.pid
> >
> > --
> > exec /usr/lib/openldap/slapd -- -u ldap -g ldap "${OPTS}"
> >
> > eend $?
> >
> > }
> >
> > stop() {
> >
> > ebegin "Stopping ldap-server"
> > start-stop-daemon --stop --signal 2 --quiet --pidfile
> >
> > /var/run/openldap/slapd.pid
> >
> > eend $?
> >
> > }
> >
> > could anybody tell me where the (fatal) differences lie?
> >
> > thanks,
> > Stefano
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2010-10-12 9:08 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-10-11 23:18 [gentoo-server] openldap init script vs slapd daemon tangonights
2010-10-12 6:59 ` Denis Bondar
2010-10-12 8:25 ` tangonights
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox