@@ -24,7 +24,7 @@
if [ -n "`pidof tac_plus`" ] ; then
echo "tac_plus is already running!"
exit 1
- elif [ -f ${TACPLUS_PID} || -f /var/lock/subsys/tac_plus ]; then
+ elif [ -f ${TACPLUS_PID} ] || [ -f /var/lock/subsys/tac_plus ]; then
echo "tac_plus may already be running. Check for existing tac_plus processes."
echo "if tac_plus is not running, remove ${TACPLUS_PID} and /var/lock/subsys/tac_plus"
exit 1
@@ -36,7 +36,7 @@
fi
;;
stop)
- if [ -f ${TACPLUS_PID} && -f /var/lock/subsys/tac_plus ]; then
+ if [ -f ${TACPLUS_PID} ] && [ -f /var/lock/subsys/tac_plus ]; then
echo -n "Stopping tac_plus:"
killproc -p ${TACPLUS_PID}
echo
@@ -51,7 +51,7 @@
fi
;;
status)
- if [[ -f ${TACPLUS_PID} && -f /var/lock/subsys/tac_plus ]]; then
+ if [[ -f ${TACPLUS_PID} ] && [ -f /var/lock/subsys/tac_plus ]]; then
echo "tac_plus pid is `cat ${TACPLUS_PID}`"
else
echo "tac_plus does not appear to be running."
@@ -62,7 +62,7 @@
;;
reload)
echo -n "Reloading tac_plus..."
- if [[ -f ${TACPLUS_PID} && -f /var/lock/subsys/tac_plus ]]; then
+ if [[ -f ${TACPLUS_PID} ] && [ -f /var/lock/subsys/tac_plus ]]; then
kill -HUP `cat ${TACPLUS_PID}`
RETVAL=$?
fi
|