diff options
Diffstat (limited to 'nscd')
-rw-r--r-- | nscd/nscd.conf | 2 | ||||
-rw-r--r-- | nscd/nscd.init | 28 |
2 files changed, 11 insertions, 19 deletions
diff --git a/nscd/nscd.conf b/nscd/nscd.conf index ada88e6a3d..5e8b3f45b8 100644 --- a/nscd/nscd.conf +++ b/nscd/nscd.conf @@ -33,7 +33,7 @@ # logfile /var/log/nscd.log # threads 4 # max-threads 32 -# server-user nobody + server-user nscd # stat-user somebody debug-level 0 # reload-count 5 diff --git a/nscd/nscd.init b/nscd/nscd.init index a882da7d8b..8ab3fbf731 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 @@ -50,7 +39,7 @@ start () { [ -d /var/run/nscd ] || mkdir /var/run/nscd [ -d /var/db/nscd ] || mkdir /var/db/nscd echo -n $"Starting $prog: " - daemon /usr/sbin/nscd + daemon /usr/sbin/nscd $NSCD_OPTIONS RETVAL=$? echo [ $RETVAL -eq 0 ] && touch /var/lock/subsys/nscd @@ -104,9 +93,12 @@ case "$1" in ;; force-reload | reload) echo -n $"Reloading $prog: " - killproc /usr/sbin/nscd -HUP - RETVAL=$? - echo + RETVAL=0 + /usr/sbin/nscd -i passwd || RETVAL=$? + /usr/sbin/nscd -i group || RETVAL=$? + /usr/sbin/nscd -i hosts || RETVAL=$? + /usr/sbin/nscd -i services || RETVAL=$? + echo ;; *) echo $"Usage: $0 {start|stop|status|restart|reload|condrestart}" |