aboutsummaryrefslogtreecommitdiffstats
path: root/main/opensmtpd/smtpd.initd
blob: 52ffd9939796ee709df944d3506e0bffbb55b709 (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
#!/sbin/openrc-run

name="$SVCNAME"
command="/usr/sbin/$SVCNAME"
command_args="$SMTPD_OPTS"

depend() {
	need net localmount
	after bootmisc firewall
	use logger dns
	provide mta
}

start() {
	ebegin "Starting smtpd ${CONF_MESSAGE}"
	/usr/sbin/smtpd
	eend $?
}

stop() {
       ebegin "Stopping smtpd ${CONF_MESSAGE}"
       /usr/sbin/smtpctl stop &> /dev/null
       eend $?
}