aboutsummaryrefslogtreecommitdiffstats
path: root/main/shorewall-common/shorewall.initd
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2012-01-19 12:32:58 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2012-01-19 12:32:58 +0000
commit3501a750925f630855836e5dc1c5f0b460610819 (patch)
treea13b387c19f92dba1fe8cff8c269e4ef7f8c84ff /main/shorewall-common/shorewall.initd
parent1a496ed9e4c79f009399a7577a9d182cf22948f3 (diff)
downloadaports-3501a750925f630855836e5dc1c5f0b460610819.tar.bz2
aports-3501a750925f630855836e5dc1c5f0b460610819.tar.xz
main/shorewall-common: replace opts in init.d script
ref #943
Diffstat (limited to 'main/shorewall-common/shorewall.initd')
-rw-r--r--main/shorewall-common/shorewall.initd9
1 files changed, 5 insertions, 4 deletions
diff --git a/main/shorewall-common/shorewall.initd b/main/shorewall-common/shorewall.initd
index 9dda676c57..db89daec81 100644
--- a/main/shorewall-common/shorewall.initd
+++ b/main/shorewall-common/shorewall.initd
@@ -1,9 +1,10 @@
#!/sbin/runscript
-# Copyright 1999-2006 Gentoo Foundation
+# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-firewall/shorewall-common/files/shorewall.initd,v 1.2 2008/05/04 13:16:40 pva Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-firewall/shorewall/files/shorewall.initd,v 1.1 2009/10/09 12:22:43 pva Exp $
-opts="start stop restart clear reset refresh check"
+extra_commands="clear reset check"
+extra_started_commands="refresh"
depend() {
need net
@@ -47,7 +48,7 @@ clear() {
# state. (21 Nov 2004 eldad)
ebegin "Clearing all firewall rules and setting policy to ACCEPT"
- /sbin/shorewall clear
+ /sbin/shorewall clear && mark_service_stopped "${SVCNAME}"
eend $?
}