summaryrefslogtreecommitdiff
blob: ea36e4ec4aecd189d8ac660e04e3fd1b8a869a50 (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-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$

depend() {
	before mta
	provide postfix_greylist
}

start() {
	ebegin "Starting policyd"
	start-stop-daemon --name policyd --start --quiet --exec /usr/sbin/policyd \
		-- -c ${POLICYD_CONFIG}
	eend $?
}

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