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 1P5Yzx-0006rd-O3 for garchives@archives.gentoo.org; Tue, 12 Oct 2010 07:10:10 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 69645E095B for ; Tue, 12 Oct 2010 07:10:09 +0000 (UTC) Received: from mail-qy0-f181.google.com (mail-qy0-f181.google.com [209.85.216.181]) by pigeon.gentoo.org (Postfix) with ESMTP id 5519EE08DD for ; Tue, 12 Oct 2010 06:59:42 +0000 (UTC) Received: by qyk5 with SMTP id 5so8179qyk.19 for ; Mon, 11 Oct 2010 23:59:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:content-type; bh=Y6KjWT2JHHFn5sztE2O+5UpfqniwW+LHuS4KOLiu17Q=; b=BM+XJrdLP38UlZS5bIpwEuHkxMZPbmT56vToqTkKf1L6t/vnGibHxWMwIRVV+w5kOS IIgsVubmKnjmtwpSYsB5spDVyHvhQ8mttrLe7Cs4uMFb9LBmuIz1AwyFcJieK04XSzSw Ma9JFNGqiCAtZ9TPbrICCdmR+uq2UNnTATgbc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=w+XdI/bfc6+avVPONTC73nkMKHhB/+qaPVRxxLXpzcIWLMQO+lz3JflCkXL8Dh1LTx r4NZX2KBhKU9zmMmFzE5G/3qWhycgS3ZoX9+wWoqOR0rUAJNxSrNHLWJ34OZuBGgqj3n P/hXWeCsvvGe+Xs2iG1kHMjmddFLMKjxxt3dA= 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 Received: by 10.229.189.207 with SMTP id df15mr4975087qcb.299.1286866781831; Mon, 11 Oct 2010 23:59:41 -0700 (PDT) Received: by 10.229.182.129 with HTTP; Mon, 11 Oct 2010 23:59:41 -0700 (PDT) In-Reply-To: <201010120118.17100.tangonights@yahoo.it> References: <201010120118.17100.tangonights@yahoo.it> Date: Tue, 12 Oct 2010 10:59:41 +0400 Message-ID: Subject: Re: [gentoo-server] openldap init script vs slapd daemon From: Denis Bondar To: gentoo-server@lists.gentoo.org Content-Type: multipart/alternative; boundary=0016361e7f4067840b0492660517 X-Archives-Salt: c25c0229-60e7-4c8a-850c-9b712f878c6d X-Archives-Hash: f2c18ff9a454a0c2894ccdc38e38b965 --0016361e7f4067840b0492660517 Content-Type: text/plain; charset=ISO-8859-1 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 > > -- Kind regards, Denis Bondar --0016361e7f4067840b0492660517 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable May be in ${OPTS}?

Try to look /etc/conf.d/slapd
What's the logs says?

2010/= 10/12 <tangon= ights@yahoo.it>
Hi everybody!

I just installed a ldap server, but no way to get the init script working,<= br> 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() {
=A0 =A0 =A0 =A0need net
=A0 =A0 =A0 =A0before dbus hald avahi-daemon
=A0 =A0 =A0 =A0provide ldap
}

start() {
=A0 =A0 =A0 =A0ebegin "Starting ldap-server"
=A0 =A0 =A0 =A0eval start-stop-daemon --start --pidfile /var/run/openldap/= slapd.pid --
exec /usr/lib/openldap/slapd -- -u ldap -g ldap "${OPTS}"
=A0 =A0 =A0 =A0eend $?
}

stop() {
=A0 =A0 =A0 =A0ebegin "Stopping ldap-server"
=A0 =A0 =A0 =A0start-stop-daemon --stop --signal 2 --quiet --pidfile
/var/run/openldap/slapd.pid
=A0 =A0 =A0 =A0eend $?
}

could anybody tell me where the (fatal) differences lie?

thanks,
Stefano




--
Kind regards,
Denis = Bondar
--0016361e7f4067840b0492660517--