opt/openldap/slurpd
2006-02-23 15:26:10 +00:00

30 lines
388 B
Bash
Executable File

#!/bin/sh
#
# /etc/rc.d/slurpd: start/stop Standalone LDAP Update Replication Daemon
#
SLURPD_PID=/var/openldap/run/slurpd.pid
case $1 in
start)
/usr/sbin/slurpd
;;
stop)
if [ -f $SLAPD_PID ]; then
kill -INT `head -1 $SLURPD_PID`
else
killall -q /usr/sbin/slurpd
fi
;;
restart)
$0 stop
sleep 2
$0 start
;;
*)
echo "usage: $0 [start|stop|restart]"
;;
esac
# End of file