summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'net-firewall/ipkungfu/files/ipkungfu.init')
-rw-r--r--net-firewall/ipkungfu/files/ipkungfu.init20
1 files changed, 20 insertions, 0 deletions
diff --git a/net-firewall/ipkungfu/files/ipkungfu.init b/net-firewall/ipkungfu/files/ipkungfu.init
new file mode 100644
index 000000000000..29f54420dc20
--- /dev/null
+++ b/net-firewall/ipkungfu/files/ipkungfu.init
@@ -0,0 +1,20 @@
+#!/sbin/runscript
+# Copyright 1999-2004 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+depend() {
+ need logger net
+}
+
+start () {
+ ebegin "Starting ipkungfu"
+ /usr/sbin/ipkungfu --init
+ eend $? "Failed to start ipkungfu"
+}
+
+stop() {
+ ebegin "Stopping ipkungfu"
+ /usr/sbin/ipkungfu --disable > /dev/null
+ eend $? "Failed to stop ipkungfu"
+}