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

name="$SVCNAME"
pidfile="/var/run/$SVCNAME.pid"
command="/usr/sbin/$SVCNAME"
command_args="${EXIM_OPTS:--bd -q15m}"
required_files="/etc/exim/${SVCNAME}.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 $?
}