smtpd.initd 475 Bytes
Newer Older
1
#!/sbin/openrc-run
2
extra_commands="checkconfig"
3 4
description_checkconfig="Check the configuration file for validity"

5
name="OpenSMTPD"
6

7
command=/usr/sbin/smtpd
8
command_args="-F ${command_args:-$SMTPD_OPTS}"  # SMTPD_OPTS is deprecated
Shiz ...'s avatar
Shiz ... committed
9
command_background=yes
10

11 12
pidfile=/run/$RC_SVCNAME.pid
required_files=/etc/smtpd/smtpd.conf
13 14 15 16 17 18 19

depend() {
	need net localmount
	after bootmisc firewall
	use logger dns
	provide mta
}
20 21 22 23 24 25 26 27

start_pre() {
	checkconfig
}

checkconfig() {
	$command -n
}