app-admin/consul: fix duplicate command_args in openrc init script
authorZac Medico <zmedico@gentoo.org>
Mon, 23 Jan 2017 17:00:26 +0000 (09:00 -0800)
committerZac Medico <zmedico@gentoo.org>
Mon, 23 Jan 2017 17:00:26 +0000 (09:00 -0800)
Package-Manager: Portage-2.3.3, Repoman-2.3.1

app-admin/consul/files/consul.initd

index 1fb48d016aa1f6520666b83570b97e8b4cfbb7a7..751d68c3cc510a1bcbe1976f47b98bf12322d74d 100644 (file)
@@ -1,5 +1,5 @@
 #!/sbin/openrc-run
-# Copyright 2015 Gentoo Foundation
+# Copyright 2015-2017 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 # $Id$
 
@@ -11,7 +11,7 @@ pidfile=${pidfile:-"/run/${SVCNAME}/${SVCNAME}.pid"}
 user=${user:-${SVCNAME}}
 
 command="/usr/bin/${SVCNAME}"
-command_args="agent -config-dir=/etc/consul.d ${command_args}"
+command_args="agent ${command_args:-config-dir=/etc/consul.d}"
 command_background="true"
 start_stop_daemon_args="--user ${user} --group ${group} \
        --stdout /var/log/${SVCNAME}/${SVCNAME}.log \