#!/bin/sh # # hdw - linux /etc/init.d/nscd (copied from ROCK Linux) # # name switch cache daemon # [ -f /etc/nscd.conf ] || exit 0 [ -x /usr/sbin/nscd ] || exit 0 case "$1" in start) echo "starting nscd." /usr/sbin/nscd ;; stop) echo "stopping nscd." /usr/sbin/nscd -K ;; status) /usr/sbin/nscd -g ;; restart) $0 stop ; $0 start ;; *) echo "Usage: $0 { start | restart | stop | status }" ; exit 1 ;; esac exit 0