sharkcz / rpms / qpid-cpp

Forked from rpms/qpid-cpp 6 years ago
Clone
Blob Blame History Raw
--- cpp/etc/qpidd	2010-03-18 14:40:29.000000000 -0400
+++ cpp/etc/qpidd	2010-03-18 14:41:12.000000000 -0400
@@ -57,6 +57,7 @@
 	if [ $RETVAL = 0 ]; then
 	    touch $pidfile
 	    chown qpidd.qpidd $pidfile
+            [ -x /sbin/restorecon ] && /sbin/restorecon $pidfile
 	    runuser -s /bin/sh qpidd -c "/usr/sbin/$prog --check --pid-dir /var/run/qpidd > $pidfile"
 	fi
 	return $RETVAL