49 lines
702 B
Plaintext
49 lines
702 B
Plaintext
|
#!/bin/bash
|
||
|
# Begin $rc_base/init.d/nscd - Name Service Cache Daemon loader
|
||
|
#
|
||
|
# Created by Silvan Calarco - silvan.calarco@qilinux.it
|
||
|
#
|
||
|
# nscd This starts and stops nscd daemon.
|
||
|
#
|
||
|
# chkconfig: 2345 17 93
|
||
|
#
|
||
|
# description: Syslogd and Klogd loaders
|
||
|
#
|
||
|
|
||
|
source /etc/sysconfig/rc
|
||
|
source $rc_functions
|
||
|
|
||
|
case "$1" in
|
||
|
start)
|
||
|
echo -n "Starting name service cache daemon..."
|
||
|
nscd
|
||
|
evaluate_retval
|
||
|
echo
|
||
|
;;
|
||
|
|
||
|
stop)
|
||
|
echo -n "Stopping name service cache daemon..."
|
||
|
killproc nscd
|
||
|
evaluate_retval
|
||
|
echo
|
||
|
;;
|
||
|
|
||
|
restart)
|
||
|
$0 stop
|
||
|
sleep 1
|
||
|
$0 start
|
||
|
;;
|
||
|
|
||
|
status)
|
||
|
statusproc nscd
|
||
|
;;
|
||
|
|
||
|
*)
|
||
|
echo "Usage: $0 {start|stop|restart|status}"
|
||
|
exit 1
|
||
|
;;
|
||
|
esac
|
||
|
|
||
|
# End $rc_base/init.d/sysklogd
|
||
|
|