summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCédric Krier <cedk@gentoo.org>2006-06-28 23:15:34 +0000
committerCédric Krier <cedk@gentoo.org>2006-06-28 23:15:34 +0000
commitac21cb29c49a6b0c3fa771403245274ee5f4eb9d (patch)
tree95c4b56d687873db78df85573ec602f6cd3a6d3d /net-firewall/nufw/files/nufw-init.d
parentnet-nntp/nzbperl - don't use $HOMEPAGE in SRC_URI (diff)
downloadsunrise-ac21cb29c49a6b0c3fa771403245274ee5f4eb9d.tar.gz
sunrise-ac21cb29c49a6b0c3fa771403245274ee5f4eb9d.tar.bz2
sunrise-ac21cb29c49a6b0c3fa771403245274ee5f4eb9d.zip
net-firewall/nufw - bug 138378
svn path=/sunrise/; revision=358
Diffstat (limited to 'net-firewall/nufw/files/nufw-init.d')
-rw-r--r--net-firewall/nufw/files/nufw-init.d20
1 files changed, 20 insertions, 0 deletions
diff --git a/net-firewall/nufw/files/nufw-init.d b/net-firewall/nufw/files/nufw-init.d
new file mode 100644
index 000000000..6379eb375
--- /dev/null
+++ b/net-firewall/nufw/files/nufw-init.d
@@ -0,0 +1,20 @@
+#!/sbin/runscript
+# Copyright 1999-2006 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+depend() {
+ before net
+}
+
+start() {
+ ebegin "Starting nufw"
+ start-stop-daemon --start --quiet --exec /usr/sbin/nufw -- -D ${NUFW_OPTIONS}
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping nufw"
+ start-stop-daemon --stop --quiet --pidfile /var/run/nufw.pid
+ eend $?
+}