SVN: rc-scripts/trunk/rc.d/init.d/functions

glen glen at pld-linux.org
Tue Nov 17 07:22:40 CET 2009


Author: glen
Date: Tue Nov 17 07:22:39 2009
New Revision: 10975

Modified:
   rc-scripts/trunk/rc.d/init.d/functions
Log:
- status -p shortopt for --pidfile

Modified: rc-scripts/trunk/rc.d/init.d/functions
==============================================================================
--- rc-scripts/trunk/rc.d/init.d/functions	(original)
+++ rc-scripts/trunk/rc.d/init.d/functions	Tue Nov 17 07:22:39 2009
@@ -815,7 +815,7 @@
 
 status() {
 	local pid subsys daemon cpuset_msg pidfile
-	if [ "$1" = "--pidfile" ]; then
+	if [ "$1" = "--pidfile" -o "$1" = "-p" ]; then
 		pidfile=$2
 		[[ "$pidfile" != /* ]] && pidfile="/var/run/$pidfile"
 		shift 2


More information about the pld-cvs-commit mailing list