blob: 467dbff3e2449696a69ea3f2583d4aee004337a4 (
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_checkconfig="Check the configuration file for validity"
name="SMTP Server"
command=/usr/sbin/smtpd
command_args="-F ${command_args:-$SMTPD_OPTS}" # SMTPD_OPTS is deprecated
command_background=yes
pidfile=/run/$RC_SVCNAME.pid
required_files=/etc/smtpd/smtpd.conf
depend() {
need net localmount
after bootmisc firewall
use logger dns
provide mta
}
start_pre() {
checkconfig
}
checkconfig() {
$command -n
}
|