summaryrefslogtreecommitdiff
path: root/qpid/cpp
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
commit2ed9600279e9b84584f6013f63ff3aa58a6225e0 (patch)
tree3bd2c196e5e36202342f098afeb88b5d37a94472 /qpid/cpp
parent326ffa3cca62ed941f72b0f95d8cb9d4bfb9ff4e (diff)
downloadqpid-python-2ed9600279e9b84584f6013f63ff3aa58a6225e0.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@935629 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/cpp')
-rwxr-xr-xqpid/cpp/etc/qpidd1
1 files changed, 1 insertions, 0 deletions
diff --git a/qpid/cpp/etc/qpidd b/qpid/cpp/etc/qpidd
index 8e6e74b33c..b4118f0866 100755
--- a/qpid/cpp/etc/qpidd
+++ b/qpid/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