aboutsummaryrefslogtreecommitdiffstats
path: root/main/opensmtpd/smtpd.initd
diff options
context:
space:
mode:
authorShiz <hi@shiz.me>2017-04-04 14:48:27 +0000
committerJakub Jirutka <jakub@jirutka.cz>2017-04-05 02:18:31 +0200
commit531254631214694d49f06ec344db95c4364015cc (patch)
tree25314a9c164ed28f675b278763946135ab990486 /main/opensmtpd/smtpd.initd
parentf0549fe8dfe56b3035af6e3803d34a573325d853 (diff)
downloadaports-531254631214694d49f06ec344db95c4364015cc.tar.bz2
aports-531254631214694d49f06ec344db95c4364015cc.tar.xz
main/opensmtpd: update to 6.0.2p1
Removes old LibreSSL patch that seems to be checked properly now, and fix some incorrect config.h checking. Also refactors the initd script to be more natural/declarative.
Diffstat (limited to 'main/opensmtpd/smtpd.initd')
-rw-r--r--main/opensmtpd/smtpd.initd20
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