Some SlackBuild scripts for Slackware.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
slackbuilds/n/openldap/rc.openldap

34 lines
342 B

#!/bin/sh
PIDFILE=/var/lib/openldap-data/slapd.pid
start()
{
/usr/libexec/slapd -u ldap -g ldap
}
stop()
{
[ -f $PIDFILE ] && kill -INT `cat $PIDFILE`
}
case "$1" in
start)
start
;;
stop)
stop
;;
restart)
stop
sleep 2
start
;;
*)
echo "Usage: $0 {start|stop|restart}"
exit 1
;;
esac