diff options
Diffstat (limited to 'main/opensmtpd/smtpd.initd')
-rw-r--r-- | main/opensmtpd/smtpd.initd | 41 |
1 files changed, 0 insertions, 41 deletions
diff --git a/main/opensmtpd/smtpd.initd b/main/opensmtpd/smtpd.initd deleted file mode 100644 index e72fa4173d3..00000000000 --- a/main/opensmtpd/smtpd.initd +++ /dev/null @@ -1,41 +0,0 @@ -#!/sbin/openrc-run - -name="OpenSMTPD" -extra_commands="checkconfig" -description_checkconfig="Check configuration file for errors" - -command=/usr/sbin/smtpd -[ "$use_pam" = yes ] && command=/usr/sbin/smtpd-pam - -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() { - if [ "$use_pam" = yes ] && [ ! -x "$command" ]; then - eerror "\$use_pam=yes, but opensmtpd-pam is not installed" - return 1 - fi - - ebegin "Checking $name configuration" - - # Don't output anything unless something is *not* ok. - local out rc=0 - out=$($command -n 2>&1) || rc=$? - [ "$rc" -eq 0 ] || printf '%s\n' "$out" >&2 - - eend $rc -} |