summaryrefslogtreecommitdiff
blob: 3c0ed055e6c6361d0e3b25d0b8bef4fc6ac22c0c (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
25
26
27
28
29
#!/sbin/runscript
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/mail-mta/exim/files/exim.rc6,v 1.8 2010/01/16 10:46:47 grobian Exp $
opts="${opts} reload"

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

start() {
	ebegin "Starting exim"
	start-stop-daemon --start --quiet --exec /usr/sbin/exim --pidfile /var/run/exim.pid -- ${EXIM_OPTS:--bd -q15m}
	eend $?
}

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

reload() {
	ebegin "Reloading exim"
	start-stop-daemon --stop --signal HUP --oknodo --quiet --pidfile /var/run/exim.pid --name exim
	eend $?
}