[rhmessaging-commits] rhmessaging commits: r1823 - store/trunk/cpp/etc.

rhmessaging-commits at lists.jboss.org rhmessaging-commits at lists.jboss.org
Tue Apr 1 14:00:58 EDT 2008


Author: nunofsantos
Date: 2008-04-01 14:00:57 -0400 (Tue, 01 Apr 2008)
New Revision: 1823

Modified:
   store/trunk/cpp/etc/rhmd
Log:
BZ 430049: rhmd init script loads sysconfig for qpidd; also, make rhmd run under user qpidd, not root

Modified: store/trunk/cpp/etc/rhmd
===================================================================
--- store/trunk/cpp/etc/rhmd	2008-04-01 17:27:14 UTC (rev 1822)
+++ store/trunk/cpp/etc/rhmd	2008-04-01 18:00:57 UTC (rev 1823)
@@ -23,15 +23,15 @@
 # Source function library.
 . /etc/rc.d/init.d/functions
 
-if [ -f /etc/sysconfig/$prog ] ; then
-	. /etc/sysconfig/$prog
+if [ -f /etc/sysconfig/rhmd ] ; then
+	. /etc/sysconfig/rhmd
 fi
 
 RETVAL=0
 
 start() {
 	echo -n $"Starting RHM daemon: "
-	$prog --daemon --config=/etc/rhmd.conf
+	daemon --check $prog "runuser -s /bin/sh qpidd -c \"$prog --daemon --config=/etc/rhmd.conf\""
 	RETVAL=$?
         if [ $RETVAL = 0 ] ; then success ; else failure ; fi
 	echo




More information about the rhmessaging-commits mailing list