summaryrefslogtreecommitdiff
blob: c7b2438b5c17ffe4b72177c2f4dbba52cb8b49a4 (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
29
30
31
32
#!/sbin/runscript
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-proxy/dansguardian/files/dansguardian.init,v 1.2 2005/12/08 22:15:11 mrness Exp $

opts="${opts} reload"

depend() {
	need net
	use dns \
		squid apache2 bfilter mman junkbuster oops polipo privoxy tinyproxy wwwoffled
	#dansguardian could be used in conjuction with any of the above web proxies
}

start() {
	ebegin "Starting DansGuardian"
	start-stop-daemon --start --quiet --pidfile /var/run/dansguardian.pid \
		--exec /usr/sbin/dansguardian
	eend $?
}

stop() {
	ebegin "Stopping DansGuardian"
	start-stop-daemon --stop --quiet --pidfile /var/run/dansguardian.pid
	eend $?
}

reload() {
	ebegin "Reloading DansGuardian"
	/usr/sbin/dansguardian -g
	eend $?
}