logrotate: enable selinux support
[buildroot-gz.git] / package / nss-pam-ldapd / S45nslcd
blobcd3e4d0f201884d24a620e4739d132ed9dac9c89
1 #!/bin/sh
3 NAME="nslcd"
4 DAEMON="/usr/sbin/${NAME}"
6 case "$1" in
7 start)
8 echo -n "Starting ${NAME}: "
9 start-stop-daemon -S -x ${DAEMON}
10 [ $? -eq 0 ] && echo "OK" || echo "FAIL"
12 stop)
13 echo -n "Stopping ${NAME}: "
14 start-stop-daemon -K -x ${DAEMON}
15 [ $? -eq 0 ] && echo "OK" || echo "FAIL"
17 restart|reload)
18 $0 stop
19 $0 start
22 echo "Usage: $0 {start|stop|restart|reload}"
23 exit 1
24 esac