diff options
Diffstat (limited to 'main/openldap/slapd.initd')
-rw-r--r-- | main/openldap/slapd.initd | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/main/openldap/slapd.initd b/main/openldap/slapd.initd new file mode 100644 index 000000000..1637d3335 --- /dev/null +++ b/main/openldap/slapd.initd @@ -0,0 +1,20 @@ +#!/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-initd,v 1.2 2008/10/14 10:29:44 robbat2 Exp $ + +depend() { + need net +} + +start() { + ebegin "Starting ldap-server" + eval start-stop-daemon --start --pidfile /var/run/openldap/slapd.pid --exec /usr/sbin/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 $? +} |