]> www.hackdaworld.org Git - hdw-linux/hdw-linux.git/blob - misc/sysfiles/etc/init.d/nscd
added devmapper, cryptsetup and libpopt
[hdw-linux/hdw-linux.git] / misc / sysfiles / etc / init.d / nscd
1 #!/bin/sh
2 #
3 # hdw - linux /etc/init.d/nscd (copied from ROCK Linux)
4 #
5 # name switch cache daemon
6 #
7
8 [ -f /etc/nscd.conf ] || exit 0
9 [ -x /usr/sbin/nscd ] || exit 0
10
11 case "$1"
12 in
13         start)
14                 echo "starting nscd."
15                 /usr/sbin/nscd
16                 ;;
17         stop)
18                 echo "stopping nscd."
19                 /usr/sbin/nscd -K
20                 ;;
21         status)
22                 /usr/sbin/nscd -g
23                 ;;
24         restart)
25                 $0 stop ; $0 start
26                 ;;
27         *)
28                 echo "Usage: $0 { start | restart | stop | status }" ; exit 1 ;;
29 esac
30
31 exit 0