Firewall-SOSDG/doc/firewall-sosdg.init

36 lines
908 B
Plaintext
Raw Normal View History

2010-10-08 11:07:44 -06:00
#!/bin/bash
2010-07-26 09:09:39 -06:00
### BEGIN INIT INFO
2010-07-26 09:35:48 -06:00
# Provides: firewall-sosdg
2011-11-30 01:10:26 -07:00
# Required-Start: $local_fs $network $remote_fs
# Required-Stop: $local_fs $network $remote_fs
2011-11-30 01:08:05 -07:00
# Should-Start: $network $syslog iptables
# Should-Stop: $network $syslog iptables
2010-07-26 09:09:39 -06:00
# X-Start-Before:
# X-Stop-After:
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Manage firewall status
# Description: Manage Firewall/SOSDG status
### END INIT INFO
PATH=/bin:/sbin:/usr/bin:/usr/sbin
2010-10-08 20:44:21 -06:00
FIREWALL_CMD=/etc/firewall-sosdg/bin/firewall-sosdg
2010-07-26 09:09:39 -06:00
. /lib/lsb/init-functions
case "${1:-}" in
start)
log_begin_msg "Starting Firewall/SOSDG..."
2010-10-08 20:44:21 -06:00
$FIREWALL_CMD
2010-07-26 09:09:39 -06:00
log_end_msg $?
;;
stop)
log_begin_msg "Stopping Firewall/SOSDG..."
2010-10-08 20:44:21 -06:00
$FIREWALL_CMD --flush
2010-07-26 09:09:39 -06:00
log_end_msg $?
;;
*)
log_success_msg "Usage: $0 {start|stop}"
exit 1
esac
exit 0