dev-db/etcd: move init script start_pre to start
authorZac Medico <zmedico@gentoo.org>
Mon, 7 Jan 2019 20:16:48 +0000 (12:16 -0800)
committerZac Medico <zmedico@gentoo.org>
Mon, 7 Jan 2019 20:17:32 +0000 (12:17 -0800)
Package-Manager: Portage-2.3.54, Repoman-2.3.12
Signed-off-by: Zac Medico <zmedico@gentoo.org>
dev-db/etcd/files/etcd.initd

index c9caecf7ff694b941052350a6d344f8a52d5d89f..a2c67d0723dac465088afad6221460c3b9d97652 100644 (file)
@@ -1,5 +1,5 @@
 #!/sbin/openrc-run
-# Copyright 1999-2017 Gentoo Foundation
+# Copyright 1999-2019 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 pidfile=/run/${RC_SVCNAME}.pid
@@ -23,7 +23,7 @@ depend() {
        after bootmisc
 }
 
-start_pre() {
+start() {
        if [ ! -d "${LOGPATH}" ] ; then
                mkdir -p "${LOGPATH}"
                chown "${command_user}:${command_user}" "${LOGPATH}"
@@ -32,4 +32,5 @@ start_pre() {
                mkdir -p "${ETCD_DATA_DIR}"
                chown "${command_user}:${command_user}" "${ETCD_DATA_DIR}"
        fi
+       default_start
 }