blob: a2d1b431debb05c4df3231114732d2441d20a2cc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
#!/sbin/runscript
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License, v2 or later
# $Header: /var/cvsroot/gentoo-x86/net-misc/knock/files/knockd.initd,v 1.2 2004/07/15 00:01:08 agriffis Exp $
depend() {
need net
}
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 $?
}
|