SOURCES: nscd.init - add reload target

glen glen at pld-linux.org
Wed Feb 28 22:03:22 CET 2007


Author: glen                         Date: Wed Feb 28 21:03:22 2007 GMT
Module: SOURCES                       Tag: HEAD
---- Log message:
- add reload target

---- Files affected:
SOURCES:
   nscd.init (1.13 -> 1.14) 

---- Diffs:

================================================================
Index: SOURCES/nscd.init
diff -u SOURCES/nscd.init:1.13 SOURCES/nscd.init:1.14
--- SOURCES/nscd.init:1.13	Wed Feb 28 21:57:59 2007
+++ SOURCES/nscd.init	Wed Feb 28 22:03:17 2007
@@ -57,12 +57,18 @@
 	status nscd
 	exit $?
 	;;
+  reload)
+	for db in passwd group hosts; do
+		show "Invalidating %s cache" $db; busy
+		nscd -i $db && ok || fail
+	done
+	;;
   restart|force-reload)
 	stop
 	start
 	;;
   *)
-	msg_usage "$0 {start|stop|restart|force-reload|status}"
+	msg_usage "$0 {start|stop|restart|reload|force-reload|status}"
 	exit 3
 esac
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SOURCES/nscd.init?r1=1.13&r2=1.14&f=u



More information about the pld-cvs-commit mailing list