Set LD_LIBRARY_PATH for overridden libcurl on RHEL6.
[shibboleth/cpp-sp.git] / configs / shibd-redhat.in
index a526cbd..d3c0205 100644 (file)
@@ -17,6 +17,10 @@ prog=shibd
 #VER=`cat /etc/redhat-release | awk '{print $3}' | awk -F . '{print $1}'`
 RETVAL=0
 
+if [ -f /etc/sysconfig/shibd ] ; then
+    . /etc/sysconfig/shibd
+fi
+
 start() {
        echo -n $"Starting $prog: "
        if [ -f /var/lock/subsys/shibd ] ; then
@@ -30,10 +34,11 @@ start() {
                        fi
                fi
        fi
+
+#_RHEL6_       export LD_LIBRARY_PATH=/opt/shibboleth/lib:$LD_LIBRARY_PATH
        export SHIBD_PID=$pidfile
-       touch $pidfile
-       chown $SHIBD_USER:$SHIBD_USER $pidfile
+       touch $pidfile
+       chown $SHIBD_USER:$SHIBD_USER $pidfile
        if [ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled; then
                /sbin/restorecon $pidfile
        fi