Add SELinux call for pidfile.
[shibboleth/sp.git] / configs / shibd-redhat.in
index e8e9774..68553b0 100644 (file)
@@ -33,6 +33,9 @@ start() {
        export SHIBD_PID=$pidfile
        touch $pidfile
        chown $SHIBD_USER:$SHIBD_USER $pidfile
+       if [ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled; then
+               /sbin/restorecon $pidfile
+       fi
        # daemon function just hangs, so I'm using su directly
        su - $SHIBD_USER -c "$shibd -p $pidfile -f &"