Add SELinux call for pidfile.
authorcantor <cantor@cb58f699-b61c-0410-a6fe-9272a202ed29>
Fri, 7 Sep 2007 20:00:44 +0000 (20:00 +0000)
committercantor <cantor@cb58f699-b61c-0410-a6fe-9272a202ed29>
Fri, 7 Sep 2007 20:00:44 +0000 (20:00 +0000)
git-svn-id: https://svn.middleware.georgetown.edu/cpp-sp/trunk@2458 cb58f699-b61c-0410-a6fe-9272a202ed29

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 &"