]> git.pld-linux.org Git - packages/glibc.git/commitdiff
fixed
authorwojtek <wojtek@pld.org.pl>
Fri, 4 Jun 1999 09:19:57 +0000 (09:19 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    nscd.init -> 1.3
    utmpd.init -> 1.5

nscd.init
utmpd.init

index 395df9d2d4f03e855fb44f7118bb5c2458a914dc..66b24e2e3b3373f3d5543ddfcc6ea13b7bfbe3c8 100644 (file)
--- a/nscd.init
+++ b/nscd.init
 # Source function library.
 . /etc/rc.d/init.d/functions
 
+# Get sysconfig
+if [ -f /etc/sysconfig/nscd ]; then
+    . /etc/sysconfig/nscd
+fi
+  
 # See how we were called.
 case "$1" in
     start)
-       secure=""
-#      for table in passwd group
-#      do
-#              if egrep '^'$table':.*nisplus' /etc/nsswitch.conf >/dev/null
-#              then
-#                      /usr/lib/nscd_nischeck $table ||
-#                              secure="$secure -S $table,yes"
-#              fi
-#      done
         show Starting Name Switch Cache Daemon
        daemon nscd $secure
         touch /var/lock/subsys/nscd
index 0bc05a7ca8989ef0ce3d60c1eae71528492fa788..01f783656cbcb775931792d78009e4ea2a009356 100644 (file)
 # Source function library.
 . /etc/rc.d/init.d/functions
 
+# Get config..
+if [ -f /etc/sysconfig/utmpd ]; then
+    . /etc/sysconfig/utmpd
+fi    
 #      See how we were called.
 #
 case "$1" in
@@ -32,7 +36,7 @@ case "$1" in
        status utmpd
        ;;
   *)
-       echo "Usage: $0 {start|stop|restart|reload|status}"
+       echo "Usage: $0 {start|stop|restart|reload|status}"
        exit 1
 esac
 
This page took 0.198691 seconds and 4 git commands to generate.