SHIBD_USER=root
pidfile=@-PKGRUNDIR-@/shibd.pid
prog=shibd
+VER=`cat /etc/redhat-release | awk '{print $3}' | awk -F . '{print $1}'`
RETVAL=0
start() {
if checkpid $kpid 2>&1; then
echo "process already running"
return -1
- else
+ else
echo "lock file found but no process running for pid $kpid, continuing"
fi
fi
if [ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled; then
/sbin/restorecon $pidfile
fi
- daemon --user $SHIBD_USER --pidfile $pidfile $shibd -p $pidfile -f -w 30
+ 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
RETVAL=$?
echo
stop() {
echo -n $"Stopping $prog: "
- if [ -f $pidfile ]; then
+ if [ -f $pidfile -a 5 -le $VER] ; then
killproc -p $pidfile shibd
else
- killproc shibd
+ killproc shibd
fi
RETVAL=$?
stop
;;
status)
- status $shibd
+ status $shibd
RETVAL=$?
;;
restart)