aboutsummaryrefslogtreecommitdiffstats
path: root/main/shorewall-lite/shorewall-lite.initd
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2012-01-19 12:40:07 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2012-01-19 12:40:07 +0000
commit61c38f4132ceda837da59176724153b84869afe4 (patch)
tree0547a382514926a133e1a167796db7c35438b7de /main/shorewall-lite/shorewall-lite.initd
parentcceeeee0a2f1c6a11ed05cb9518887a1d4a319be (diff)
downloadaports-61c38f4132ceda837da59176724153b84869afe4.tar.bz2
aports-61c38f4132ceda837da59176724153b84869afe4.tar.xz
main/shorewall-lite: replace opts in init.d script
ref #943
Diffstat (limited to 'main/shorewall-lite/shorewall-lite.initd')
-rwxr-xr-xmain/shorewall-lite/shorewall-lite.initd5
1 files changed, 3 insertions, 2 deletions
diff --git a/main/shorewall-lite/shorewall-lite.initd b/main/shorewall-lite/shorewall-lite.initd
index d2537e8a12..bff41d8270 100755
--- a/main/shorewall-lite/shorewall-lite.initd
+++ b/main/shorewall-lite/shorewall-lite.initd
@@ -3,7 +3,8 @@
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-firewall/shorewall-lite/files/shorewall-lite,v 1.1 2007/05/20 22:32:36 mjolnir Exp $
-opts="start stop restart clear reset refresh"
+extra_commands="clear reset"
+extra_started_commands="refresh"
depend() {
need net
@@ -42,7 +43,7 @@ clear() {
# state. (21 Nov 2004 eldad)
ebegin "Clearing all firewall rules and setting policy to ACCEPT"
- /sbin/shorewall-lite clear
+ /sbin/shorewall-lite clear && mark_service_stopped "${SVCNAME}"
eend $?
}