mail-mta/opensmtpd: more robust openrc script
authorJason A. Donenfeld <zx2c4@gentoo.org>
Tue, 7 Jun 2016 09:08:14 +0000 (11:08 +0200)
committerJason A. Donenfeld <zx2c4@gentoo.org>
Tue, 7 Jun 2016 09:08:14 +0000 (11:08 +0200)
mail-mta/opensmtpd/files/smtpd.initd

index 6d254f162400ec9c06f4529387951ea8aa98f1ab..9dd01a79dde5dc650ce9142379e408a046dc80d7 100644 (file)
@@ -1,17 +1,12 @@
 #!/sbin/openrc-run
-# Copyright 1999-2015 Gentoo Foundation
+# Copyright 1999-2016 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 # $Id$
 
 command="smtpd"
-start_stop_daemon_args="--pidfile=/run/smtpd.pid"
+pidfile="/run/smtpd.pid"
 description="SMTP daemon from OpenBSD"
 
 depend() {
        need net
 }
-stop() {
-       ebegin "Stopping smtpd"
-       smtpctl stop
-       eend $?
-}