about summary refs log tree commit diff
path: root/nscd
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2005-09-12 12:53:20 +0000
committerJakub Jelinek <jakub@redhat.com>2005-09-12 12:53:20 +0000
commit78c17debb1198d7d84be280480ee1ba52ee38b73 (patch)
treed3451db060601f48e6206db89a8e051d387640d2 /nscd
parent2b0f7faea4d49b96dbd07ff86ef9abf69ea61929 (diff)
downloadglibc-78c17debb1198d7d84be280480ee1ba52ee38b73.tar.gz
glibc-78c17debb1198d7d84be280480ee1ba52ee38b73.tar.xz
glibc-78c17debb1198d7d84be280480ee1ba52ee38b73.zip
2.3.90-12
Diffstat (limited to 'nscd')
-rw-r--r--nscd/nscd.init19
1 files changed, 4 insertions, 15 deletions
diff --git a/nscd/nscd.init b/nscd/nscd.init
index a0074b99e5..1fba72f5c3 100644
--- a/nscd/nscd.init
+++ b/nscd/nscd.init
@@ -9,6 +9,7 @@
 #		slow naming services like NIS, NIS+, LDAP, or hesiod.
 # processname: /usr/sbin/nscd
 # config: /etc/nscd.conf
+# config: /etc/sysconfig/nscd
 #
 ### BEGIN INIT INFO
 # Provides: nscd
@@ -28,20 +29,8 @@
 # Source function library.
 . /etc/init.d/functions
 
-# nscd does not run on any kernel lower than 2.2.0 because of threading
-# problems, so we require that in first place.
-case $(uname -r) in
-    2.[2-9].*)
-	# this is okay
-	;;
-    [3-9]*)
-	# these are of course also okay
-	;;
-    *)
-	#this is not
-	exit 1
-	;;
-esac
+# Source an auxiliary options file if we have one, and pick up NSCD_OPTIONS.
+[ -r /etc/sysconfig/nscd ] && . /etc/sysconfig/nscd
 
 RETVAL=0
 prog=nscd
@@ -57,7 +46,7 @@ start () {
 #   	fi
 #   done
     echo -n $"Starting $prog: "
-    daemon /usr/sbin/nscd $secure
+    daemon /usr/sbin/nscd $secure $NSCD_OPTIONS
     RETVAL=$?
     echo
     [ $RETVAL -eq 0 ] && touch /var/lock/subsys/nscd