summaryrefslogtreecommitdiff
blob: 30bc79078ecadbeeb835ab1a081daab082b9594b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#!/sbin/runscript
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-misc/proxyper/files/proxyper.ini,v 1.2 2004/07/15 00:09:18 agriffis Exp $

opts="${opts} reload"

depend() {
	need net
}

start() {
	ebegin "Starting distributed.net personal proxy"
	start-stop-daemon --start --quiet --pidfile /opt/proxyper/rc5desproxy.pid --exec /opt/proxyper/proxyper -- -detach
	eend $?
}

stop() {
	ebegin "Stopping distributed.net personal proxy"
	start-stop-daemon --stop --quiet --pidfile /opt/proxyper/rc5desproxy.pid
	eend $?
}

reload() {
	ebegin "Reloading distribute.net personal proxy ini file"
	start-stop-daemon --stop --signal HUP --pidfile /opt/proxyper/rc5desproxy.pid
	eend $?
}