aboutsummaryrefslogtreecommitdiffstats
path: root/testing/exim/exim.initd
blob: ef0ddc5a738a484c57d9b00942c0b438ae7f03d1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/sbin/openrc-run

pidfile="/run/exim.pid"
command="/usr/sbin/exim"
command_args="${EXIM_OPTS:--bd -q15m}"
required_files="/etc/exim/exim.conf"
extra_started_commands="reload"

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

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