summaryrefslogtreecommitdiff
blob: e5011b2757d5013cf73ed03c3aba4813ad58d43a (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
#!/sbin/runscript
# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/mail-filter/spampd/files/init,v 1.3 2014/04/20 11:11:35 eras Exp $

# Note: spampd configuration file is /etc/conf.d/spampd

depend() {
	use net
}

start() {
	ebegin "Starting spampd"
	start-stop-daemon --start --quiet \
		--exec /usr/sbin/spampd -- --pid=/var/run/spampd.pid \
			${SPAMPD_OPTS}
	eend $? "Failed to start spampd"
}

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