aboutsummaryrefslogtreecommitdiffstats
path: root/testing/exim/exim.initd
blob: fd0d9bd3bebe68d83f75b5ee5abf6745190d172b (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
#!/sbin/openrc-run

description="EXIM internet mailer"
cfgfile=/etc/exim/exim.conf
pidfile=/run/exim.pid
command=/usr/sbin/exim
command_args=${command_args:--bd -q15m}
required_files="$cfgfile"
extra_started_commands="reload"
description_reload="Reload configuration"

depend() {
	use antivirus net
	provide mta
}

start_pre() {
	ebegin
	$command -bV >/dev/null 2>>${startuplog:-/dev/null}
	eend $?
}

reload() {
	ebegin "Reloading ${SVCNAME}"
	start-stop-daemon --signal HUP --pidfile $pidfile
	eend $?
}