zmedico 15/05/26 03:54:54 Added: consul-template.initd consul-template.confd localhost.json.example consul-template.service Log: Add consul-template. (Portage version: 2.2.20/cvs/Linux x86_64, signed Manifest commit with key FDE8EF85AE5719A3)
Revision Changes Path 1.1 app-admin/consul-template/files/consul-template.initd file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-admin/consul-template/files/consul-template.initd?rev=1.1&view=markup plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-admin/consul-template/files/consul-template.initd?rev=1.1&content-type=text/plain Index: consul-template.initd =================================================================== #!/sbin/openrc-run # Copyright 2015 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/app-admin/consul-template/files/consul-template.initd,v 1.1 2015/05/26 03:54:54 zmedico Exp $ description="consul-template agent" group=${group:-${SVCNAME}} pidfile=${pidfile:-"/run/${SVCNAME}/${SVCNAME}.pid"} user=${user:-${SVCNAME}} command="/usr/bin/${SVCNAME}" command_args="agent -config-dir=/etc/consul-template.d ${command_args}" command_background="true" start_stop_daemon_args="--user ${user} --group ${group} \ --stdout /var/log/${SVCNAME}/${SVCNAME}.log \ --stderr /var/log/${SVCNAME}/${SVCNAME}.log" depend() { need net after net } start_pre() { checkpath -d -m 0755 -o "${user}":"${group}" "${pidfile%/*}" } 1.1 app-admin/consul-template/files/consul-template.confd file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-admin/consul-template/files/consul-template.confd?rev=1.1&view=markup plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-admin/consul-template/files/consul-template.confd?rev=1.1&content-type=text/plain Index: consul-template.confd =================================================================== # you can change the init script behavior by setting those parameters # - group (default: consul-template) # - pidfile (default: /run/consul-template/consul-template.pid) # - user (default: consul-template) # extra arguments for the consul agent command_args="-config=/etc/consul-template.d" 1.1 app-admin/consul-template/files/localhost.json.example file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-admin/consul-template/files/localhost.json.example?rev=1.1&view=markup plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-admin/consul-template/files/localhost.json.example?rev=1.1&content-type=text/plain Index: localhost.json.example =================================================================== consul = "127.0.0.1:8500" 1.1 app-admin/consul-template/files/consul-template.service file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-admin/consul-template/files/consul-template.service?rev=1.1&view=markup plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-admin/consul-template/files/consul-template.service?rev=1.1&content-type=text/plain Index: consul-template.service =================================================================== [Unit] Description=consul-template daemon Requires=network-online.target After=network-online.target [Service] User=consul-template Environment=CONSUL_TEMPLATE_DAEMON_OPTS="-config=/etc/consul-template.d" ExecStart=/usr/bin/consul-template $CONSUL_TEMPLATE_DAEMON_OPTS Restart=on-failure SuccessExitStatus=12 ExecReload=/bin/kill -HUP $MAINPID [Install] WantedBy=default.target