SHIBD_USER=root
pidfile=@-PKGRUNDIR-@/shibd.pid
prog=shibd
-VER=`cat /etc/redhat-release | awk '{print $3}' | awk -F . '{print $1}'`
+#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
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
- if [ 5 -le $VER ] ; then
- daemon --user $SHIBD_USER --pidfile $pidfile $shibd -p $pidfile -f -w 30
- else
- daemon --user $SHIBD_USER $shibd -p $pidfile -f -w 30
- fi
+ daemon --user $SHIBD_USER $shibd -p $pidfile -f -w 30
RETVAL=$?
echo
stop() {
echo -n $"Stopping $prog: "
- if [ -f $pidfile -a 5 -le $VER ] ; then
- killproc -p $pidfile shibd
- else
- killproc shibd
- fi
+ killproc shibd
RETVAL=$?
echo