summaryrefslogtreecommitdiff
path: root/cpp/etc
diff options
context:
space:
mode:
authorKim van der Riet <kpvdr@apache.org>2010-04-19 15:44:02 +0000
committerKim van der Riet <kpvdr@apache.org>2010-04-19 15:44:02 +0000
commitcb7d1fb6fca2c74d712c41ff2d3a271cf98e8d91 (patch)
treea6eb16b1690d6edcbcd5d71f302684a2064da02b /cpp/etc
parentc4e459bfa208e3cbd1035da8976a5ff16f6ea142 (diff)
downloadqpid-python-cb7d1fb6fca2c74d712c41ff2d3a271cf98e8d91.tar.gz
Add restorecon to qpid init script to allow SELinux to correctly handle pidfile attributes
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@935629 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/etc')
-rwxr-xr-xcpp/etc/qpidd1
1 files changed, 1 insertions, 0 deletions
diff --git a/cpp/etc/qpidd b/cpp/etc/qpidd
index 8e6e74b33c..b4118f0866 100755
--- a/cpp/etc/qpidd
+++ b/cpp/etc/qpidd
@@ -57,6 +57,7 @@ start() {
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