? aclocal.m4
Index: scripts/clvmd_init_red_hat.in
===================================================================
RCS file: /cvs/lvm2/LVM2/scripts/clvmd_init_red_hat.in,v
retrieving revision 1.9
diff -u -r1.9 clvmd_init_red_hat.in
--- scripts/clvmd_init_red_hat.in	23 Jun 2010 16:24:14 -0000	1.9
+++ scripts/clvmd_init_red_hat.in	12 Aug 2010 08:50:16 -0000
@@ -66,7 +66,7 @@
 {
 	if ! rh_status_q; then
 		echo -n "Starting $DAEMON: "
-		daemon $DAEMON $CLVMDOPTS || return $?
+		$DAEMON $CLVMDOPTS || return $?
 		echo
 	fi
 
@@ -165,6 +165,11 @@
 	fi
 }
 
+[ "$EUID" != "0" ] && {
+	echo "clvmd init script can only be executed as root user"
+	exit 4
+}
+
 # See how we were called.
 case "$1" in
   start)
