Blame SOURCES/redhat-lsb-lsb_start_daemon-fix.patch

3f3c6f
diff -up redhat-lsb-3.1/lsb_start_daemon.orig redhat-lsb-3.1/lsb_start_daemon
3f3c6f
--- redhat-lsb-3.1/lsb_start_daemon.orig	2009-05-15 11:20:17.000000000 -0400
3f3c6f
+++ redhat-lsb-3.1/lsb_start_daemon	2009-05-15 11:33:03.000000000 -0400
3f3c6f
@@ -4,6 +4,9 @@
3f3c6f
 
3f3c6f
 nice=
3f3c6f
 force=
3f3c6f
+pidfile=
3f3c6f
+user=
3f3c6f
+check=
3f3c6f
 RETVAL=
3f3c6f
 while [ "$1" != "${1##[-+]}" ]; do
3f3c6f
 	case $1 in
3f3c6f
@@ -15,7 +18,28 @@ while [ "$1" != "${1##[-+]}" ]; do
3f3c6f
 	     	nice=$2
3f3c6f
 		shift 2
3f3c6f
 		;;
3f3c6f
+	     -p)
3f3c6f
+		pidfile="--pidfile $2"
3f3c6f
+		shift 2
3f3c6f
+		;;
3f3c6f
+	     -u)
3f3c6f
+	        user="--user $2"
3f3c6f
+		shift 2
3f3c6f
+		;;
3f3c6f
+	     -c)
3f3c6f
+	        check="--check $2"
3f3c6f
+		shift 2
3f3c6f
+		;;
3f3c6f
+	      *)     
3f3c6f
+ 		echo "Unknown Option $1"
3f3c6f
+ 		echo "Options are:"
3f3c6f
+ 		echo "-f" 
3f3c6f
+		echo "-p {pidfile}"
3f3c6f
+		echo "-n [+/-nicelevel]"
3f3c6f
+		echo "-u {user}"
3f3c6f
+		echo "-c {base}"
3f3c6f
+	        exit 1;;	
3f3c6f
 	esac
3f3c6f
 done
3f3c6f
-LSB=LSB-1.1 daemon ${force:-} ${nice:-} $*
3f3c6f
+LSB=LSB-1.1 daemon ${force:-} ${nice:-} ${pidfile:-} ${user:-} ${check:-} $*
3f3c6f
 exit $?