summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'net-firewall/shorewall6/files/shorewall6.initd')
-rw-r--r--net-firewall/shorewall6/files/shorewall6.initd10
1 files changed, 9 insertions, 1 deletions
diff --git a/net-firewall/shorewall6/files/shorewall6.initd b/net-firewall/shorewall6/files/shorewall6.initd
index 5eccb81e41f0..299b02ef7d50 100644
--- a/net-firewall/shorewall6/files/shorewall6.initd
+++ b/net-firewall/shorewall6/files/shorewall6.initd
@@ -1,11 +1,17 @@
#!/sbin/runscript
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-firewall/shorewall6/files/shorewall6.initd,v 1.2 2012/02/24 18:53:41 constanze Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-firewall/shorewall6/files/shorewall6.initd,v 1.3 2012/10/21 12:56:33 constanze Exp $
extra_commands="check clear"
extra_started_commands="refresh reset"
+checkconfig() {
+ if [ ! -d /var/lock/subsys ] ; then
+ checkpath -d -m 755 /var/lock/subsys
+ fi
+}
+
depend() {
need net
provide firewall
@@ -13,6 +19,7 @@ depend() {
}
start() {
+ checkconfig
ebegin "Starting firewall"
/sbin/shorewall6 -f start 1>/dev/null
eend $?
@@ -25,6 +32,7 @@ stop() {
}
restart() {
+ checkconfig
# shorewall comes with its own control script that includes a
# restart function, so refrain from calling svc_stop/svc_start
# here. Note that this comment is required to fix bug 55576;