aboutsummaryrefslogtreecommitdiff
path: root/nscd/nscd.init
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2005-06-20 15:49:08 +0000
committerUlrich Drepper <drepper@redhat.com>2005-06-20 15:49:08 +0000
commit64d64de628376b21e8eb29bdc9ef6a3651793aef (patch)
treee91fa4027fe4402d6359129f26f43081d579267a /nscd/nscd.init
parent24c709d1af1d603e310645b1305bb77448d69e20 (diff)
downloadglibc-64d64de628376b21e8eb29bdc9ef6a3651793aef.zip
glibc-64d64de628376b21e8eb29bdc9ef6a3651793aef.tar.gz
glibc-64d64de628376b21e8eb29bdc9ef6a3651793aef.tar.bz2
* nscd/nscd.init: Get more in line with lsb3.cvs/fedora-glibc-20050620T1530cvs/fedora-glibc-20050620T1522
* nscd/nscd.c: Adjust some error codes to fit in better with lsb3. * nscd/connections.c: Likewise.
Diffstat (limited to 'nscd/nscd.init')
-rw-r--r--nscd/nscd.init16
1 files changed, 13 insertions, 3 deletions
diff --git a/nscd/nscd.init b/nscd/nscd.init
index 23e20c3..a0074b9 100644
--- a/nscd/nscd.init
+++ b/nscd/nscd.init
@@ -10,6 +10,16 @@
# processname: /usr/sbin/nscd
# config: /etc/nscd.conf
#
+### BEGIN INIT INFO
+# Provides: nscd
+# Required-Start: $syslog
+# Default-Stop: 0 1 6
+# Short-Description: Starts the Name Switch Cache Daemon
+# Description: This is a daemon which handles passwd and group lookups \
+# for running programs and cache the results for the next \
+# query. You should start this daemon if you use \
+# slow naming services like NIS, NIS+, LDAP, or hesiod.
+### END INIT INFO
# Sanity checks.
[ -f /etc/nscd.conf ] || exit 0
@@ -29,7 +39,7 @@ case $(uname -r) in
;;
*)
#this is not
- exit 0
+ exit 1
;;
esac
@@ -95,11 +105,11 @@ case "$1" in
restart
RETVAL=$?
;;
- condrestart)
+ try-restart | condrestart)
[ -e /var/lock/subsys/nscd ] && restart
RETVAL=$?
;;
- reload)
+ force-reload | reload)
echo -n $"Reloading $prog: "
killproc /usr/sbin/nscd -HUP
RETVAL=$?