git-svn-id: https://svn.middleware.georgetown.edu/cpp-sp/branches/REL_2@3002
cb58f699-b61c-0410-a6fe-
9272a202ed29
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"
+ daemon --user $SHIBD_USER --pidfile $pidfile $shibd -p $pidfile -f
RETVAL=$?
echo
stop() {
echo -n $"Stopping $prog: "
if [ -f $pidfile ]; then
- read kpid < $pidfile
- kill $kpid
+ killproc -p $pidfile shibd
else
- killproc shibd
+ killproc shibd
fi
RETVAL=$?