aboutsummaryrefslogtreecommitdiffstats
path: root/main/knock/knock.initd
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2011-10-05 11:42:27 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2011-10-05 11:43:07 +0000
commit973f47dbc306f8d92f9aa8c65dfb5e68a0f23b2f (patch)
tree455839f9c552562025228eae925fcb42e29630c6 /main/knock/knock.initd
parenta8a0d7aadb3d9fb68d5822a103f83a872174ab90 (diff)
downloadaports-973f47dbc306f8d92f9aa8c65dfb5e68a0f23b2f.tar.bz2
aports-973f47dbc306f8d92f9aa8c65dfb5e68a0f23b2f.tar.xz
main/knock: moved from testing
Diffstat (limited to 'main/knock/knock.initd')
-rw-r--r--main/knock/knock.initd21
1 files changed, 21 insertions, 0 deletions
diff --git a/main/knock/knock.initd b/main/knock/knock.initd
new file mode 100644
index 000000000..b83c5c741
--- /dev/null
+++ b/main/knock/knock.initd
@@ -0,0 +1,21 @@
+#!/sbin/runscript
+# Copyright 1999-2004 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License, v2 or later
+# $Header: /var/www/viewcvs.gentoo.org/raw_cvs/gentoo-x86/net-misc/knock/files/knockd.initd,v 1.2 2004/07/15 00:01:08 agriffis Exp $
+
+depend() {
+ need net
+ after firewall
+}
+
+start() {
+ ebegin "Starting knockd"
+ start-stop-daemon --start --quiet --exec /usr/sbin/knockd -- ${OPTS}
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping knockd"
+ start-stop-daemon --stop --quiet --exec /usr/sbin/knockd
+ eend $?
+}