[packages/unscd] add pidfile to status

glen glen at pld-linux.org
Tue Sep 4 22:46:06 CEST 2012


commit f87ccbf909e92e0db72be1b9d97f5f0f96053e7e
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Tue Sep 4 23:46:02 2012 +0300

    add pidfile to status

 nscd.init  | 2 ++
 unscd.spec | 2 +-
 2 files changed, 3 insertions(+), 1 deletion(-)
---
diff --git a/unscd.spec b/unscd.spec
index 95bc527..000274e 100644
--- a/unscd.spec
+++ b/unscd.spec
@@ -24,7 +24,7 @@ Requires(pre):	/bin/id
 Requires(pre):	/usr/bin/getgid
 Requires(pre):	/usr/sbin/groupadd
 Requires(pre):	/usr/sbin/useradd
-Requires:	rc-scripts >= 0.2.0
+Requires:	rc-scripts >= 0.4.1.26
 Provides:	user(nscd)
 Obsoletes:	gnscd
 Obsoletes:	nscd
diff --git a/nscd.init b/nscd.init
index d231074..597bb52 100755
--- a/nscd.init
+++ b/nscd.init
@@ -9,6 +9,7 @@
 #		slow Services like NIS or NIS+
 # processname:	nscd
 # config:	/etc/nscd.conf
+# pidfile:	/var/run/nscd/nscd.pid
 #
 
 # Sanity checks.
@@ -90,6 +91,7 @@ case "$1" in
 	;;
   status)
 	status nscd
+	status --pidfile /var/run/nscd/nscd.pid nscd
 	exit $?
 	;;
   *)
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/unscd.git/commitdiff/f87ccbf909e92e0db72be1b9d97f5f0f96053e7e



More information about the pld-cvs-commit mailing list