fi
msg_starting "Shorewall"
- deltext; ok
- # FIXME: use daemon and handle OK/FAIL
- exec /sbin/shorewall -q start >/dev/null
- touch /var/lock/subsys/shorewall
+ busy
+ /usr/sbin/shorewall -q start >/dev/null
+ RETVAL=$?
+ if [ $RETVAL -eq 0 ]; then
+ ok
+ touch /var/lock/subsys/shorewall
+ else
+ fail
+ fi
}
stop() {
fi
msg_stopping "Shorewall"
- deltext; ok
- # FIXME: use killproc or handle OK/FAIL manually
- exec /sbin/shorewall stop >/dev/null
- rm -f /var/lock/subsys/shorewall >/dev/null 2>&1
+ busy
+ /usr/sbin/shorewall stop >/dev/null
+ RETVAL=$?
+ if [ $RETVAL -eq 0 ]; then
+ ok
+ rm -f /var/lock/subsys/shorewall >/dev/null 2>&1
+ else
+ fail
+ fi
}
# See how we were called
case "$1" in
start)
+ start
;;
stop)
+ stop
;;
status)
status shorewall
- exec /sbin/shorewall status
+ exec /usr/sbin/shorewall status
exit $?
;;
restart)