summaryrefslogtreecommitdiff
path: root/mail-filter/spampd/files/init
blob: 339a938d9c7dd6fc53ad0e12005971ad39d18c6f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/sbin/openrc-run
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

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

depend() {
	use net
}

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

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