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

glen glen at pld-linux.org
Mon May 19 08:04:32 CEST 2008


Author: glen
Date: Mon May 19 08:04:31 2008
New Revision: 9756

Modified:
   rc-scripts/trunk/rc.d/init.d/functions
Log:
- add --pidfile to daemon()

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	Mon May 19 08:04:31 2008
@@ -515,9 +515,10 @@
 # A function to start a program (now it's useful on read-only filesystem too)
 daemon()
 {
-	typeset errors="" prog="" waitname="" waittime=""
+	typeset errors="" prog="" end="" waitname="" waittime=""
 	typeset -i exit_code=0
 	local nice=$SERVICE_RUN_NICE_LEVEL
+	local pidfile
 
 	while [ $# -gt 0 ]; do
 		case $1 in
@@ -546,6 +547,10 @@
 			shift
 			waittime="$1"
 			;;
+		  --pidfile)
+			shift
+			pidfile="$1"
+			;;
 		  -*|+*)
 			nice=$1
 			shift


More information about the pld-cvs-commit mailing list