From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1P5aqX-00081p-KP for garchives@archives.gentoo.org; Tue, 12 Oct 2010 09:08:34 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 4DDB8E09EB for ; Tue, 12 Oct 2010 09:08:33 +0000 (UTC) Received: from smtp.eutelia.it (mp1-smtp-6.eutelia.it [62.94.10.166]) by pigeon.gentoo.org (Postfix) with ESMTP id C077CE09C8 for ; Tue, 12 Oct 2010 08:25:53 +0000 (UTC) Received: from pc-0001.localnet (ip-88-47.sn1.eutelia.it [62.94.88.47]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.eutelia.it (Eutelia) with ESMTP id 8FB2F5DDDD1 for ; Tue, 12 Oct 2010 10:25:52 +0200 (CEST) From: tangonights@yahoo.it To: gentoo-server@lists.gentoo.org Subject: Re: [gentoo-server] openldap init script vs slapd daemon Date: Tue, 12 Oct 2010 10:25:51 +0200 User-Agent: KMail/1.13.5 (Linux/2.6.34-gentoo-r1; KDE/4.4.5; i686; ; ) References: <201010120118.17100.tangonights@yahoo.it> In-Reply-To: Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-server@lists.gentoo.org Reply-to: gentoo-server@lists.gentoo.org MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-15" Content-Transfer-Encoding: 7bit Message-Id: <201010121025.51947.tangonights@yahoo.it> X-Archives-Salt: 93f2f9be-6b6b-469b-a34d-92783dde2819 X-Archives-Hash: db76df4c8e4a078175179049599f3440 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 > > > 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