net-ftp/pure-ftpd: Fixed openrc init script shebang.
authorLars Wendler <polynomial-c@gentoo.org>
Tue, 3 May 2016 09:23:32 +0000 (11:23 +0200)
committerLars Wendler <polynomial-c@gentoo.org>
Tue, 3 May 2016 09:47:17 +0000 (11:47 +0200)
Package-Manager: portage-2.2.28
Signed-off-by: Lars Wendler <polynomial-c@gentoo.org>
net-ftp/pure-ftpd/files/pure-ftpd.rc11

index fe200cfb0f1a90a37add986c408287ea1bdd0030..1e8722f88d75ac073473a4316becf608ae96a388 100644 (file)
@@ -1,5 +1,5 @@
-#!/sbin/runscript
-# Copyright 1999-2014 Gentoo Foundation
+#!/sbin/openrc-run
+# Copyright 1999-2016 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 # $Id$
 
@@ -13,7 +13,7 @@ depend() {
        need net
 }
 
-checkconfig() {
+start_pre() {
        if [ -z "$IS_CONFIGURED" ] ; then
                eerror "You need to setup /etc/conf.d/pure-ftpd first!"
                return 1
@@ -21,8 +21,6 @@ checkconfig() {
 }
 
 start() {
-       checkconfig || return 1
-
        UPSCRIPT=""
        if [ -n "$UPLOADSCRIPT" ] ; then
                UPSCRIPT="--uploadscript"