summaryrefslogtreecommitdiff
blob: e79fec4a1d95b783c2422b2ade54c495a4328681 (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-2004 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-mail/spampd/files/init,v 1.3 2004/03/06 03:24:04 vapier Exp $

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

depend() {
	need 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"
}