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

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