diff options
Diffstat (limited to 'main/opensmtpd/smtpd.initd')
-rw-r--r-- | main/opensmtpd/smtpd.initd | 20 |
1 files changed, 5 insertions, 15 deletions
diff --git a/main/opensmtpd/smtpd.initd b/main/opensmtpd/smtpd.initd index 52ffd99397..ad6f05dd45 100644 --- a/main/opensmtpd/smtpd.initd +++ b/main/opensmtpd/smtpd.initd @@ -1,8 +1,10 @@ #!/sbin/openrc-run -name="$SVCNAME" -command="/usr/sbin/$SVCNAME" -command_args="$SMTPD_OPTS" +name="$RC_SVCNAME" +command="/usr/sbin/$RC_SVCNAME" +command_args="-F $SMTPD_OPTS" +command_background=yes +pidfile="/run/$RC_SVCNAME.pid" depend() { need net localmount @@ -10,15 +12,3 @@ depend() { 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 $? -}
\ No newline at end of file |