aboutsummaryrefslogtreecommitdiffstats
path: root/main/amavisd-new/amavisd.init
blob: 23f92af3f36ae0b7562235a87737418265152866 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/sbin/runscript

PIDFILE="/var/amavis/amavisd.pid"

depend() {
	need net
	use logger
	use antivirus
	before mta
}

start() {
	ebegin "Starting amavisd-new"
	start-stop-daemon --start --quiet --name amavisd --pidfile ${PIDFILE} \
	 --exec /usr/sbin/amavisd
	eend $?
}

stop() {
	ebegin "Stopping amavisd-new"
	start-stop-daemon --stop --quiet --pidfile ${PIDFILE}
	eend $?
}