summaryrefslogtreecommitdiff
blob: 7a94fc9a704052b3b80b8cef0c530b5b9da73017 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/sbin/runscript
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-dialup/capifwd/files/capifwd.init,v 1.1.1.1 2005/11/30 09:46:16 chriswhite Exp $

opts="start stop"

depend() {
	need capi
}

start() {
	ebegin "Starting capi forwarding daemon"
	start-stop-daemon --start --quiet --exec /usr/sbin/capifwd -- -p ${PORT}
	eend $?
}

stop() {
	ebegin "Stopping capi forwarding daemon"
	start-stop-daemon --stop --quiet --retry 5 --exec /usr/sbin/capifwd 
	eend $?
}