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

24 lines
304 B

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