tags 672326 patch
thanks

Took that and adapted it to the following, tested and works for me.

-- >8 --
---
 etc/init.d/arno-iptables-firewall |   12 ++++++++----
 1 file changed, 8 insertions(+), 4 deletions(-)

diff --git a/etc/init.d/arno-iptables-firewall 
b/etc/init.d/arno-iptables-firewall
index eef7fdd..1634684 100755
--- a/etc/init.d/arno-iptables-firewall
+++ b/etc/init.d/arno-iptables-firewall
@@ -22,28 +22,31 @@
 
 PATH=/bin:/usr/bin:/sbin:/usr/sbin
 PROGRAM="/usr/local/sbin/arno-iptables-firewall"
+NAME="arno-iptables-firewall"
 
 # Be verbose(1)?:
 VERBOSE=0
 
 test -x $PROGRAM || exit 0
 
+. /lib/lsb/init-functions
+
 if [ "$VERBOSE" = "0" ]; then
   case "$1" in
     start)
-      echo "Starting Arno's Iptables Firewall..."
+      log_daemon_msg "Starting Arno's Iptables Firewall" "$NAME"
     ;;
 
     stop)
-      echo "Stopping Arno's Iptables Firewall..."
+      log_daemon_msg "Stopping Arno's Iptables Firewall" "$NAME"
     ;;
 
     restart)
-      echo "Restarting Arno's Iptables Firewall..."
+      log_daemon_msg "Restarting Arno's Iptables Firewall" "$NAME"
     ;;
 
     force-reload)
-      echo "(Forced) reloading Arno's Iptables Firewall..."
+      log_daemon_msg "(Forced) reloading Arno's Iptables Firewall" "$NAME"
     ;;
 
     status)
@@ -60,6 +63,7 @@ if [ "$VERBOSE" = "0" ]; then
   # Call firewall script:
   result=`$PROGRAM $*`
   retval=$?
+  log_end_msg $retval
 else
   $PROGRAM $*
   retval=$?
-- 
1.7.10



-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to