diff options
| author | Leo <thinkabit.ukim@gmail.com> | 2019-08-31 08:20:35 -0300 |
|---|---|---|
| committer | Leo <thinkabit.ukim@gmail.com> | 2019-09-01 21:21:09 -0300 |
| commit | b67fec0e64c48cd1d66f8f321cd6bfffc32342e2 (patch) | |
| tree | 95a256fe2f980d57226fd9a32f8b86aac5d64871 /testing/consul-template/consul-template.initd | |
| parent | 0cc256392f2f67a0789cc780af81cf3cb1b7d53e (diff) | |
| download | aports-b67fec0e64c48cd1d66f8f321cd6bfffc32342e2.tar.bz2 aports-b67fec0e64c48cd1d66f8f321cd6bfffc32342e2.tar.xz | |
testing/consul-template: upgrade to 0.21.1
Diffstat (limited to 'testing/consul-template/consul-template.initd')
| -rw-r--r-- | testing/consul-template/consul-template.initd | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/testing/consul-template/consul-template.initd b/testing/consul-template/consul-template.initd new file mode 100644 index 0000000000..d0f6b7ed7a --- /dev/null +++ b/testing/consul-template/consul-template.initd @@ -0,0 +1,20 @@ +#!/sbin/openrc-run +supervisor=supervise-daemon + +name="$RC_SVCNAME" + +description="template rendering, notifier, and supervisor for HashiCorp Consul and Vault data" +description_reload="Reload configuration" + +daemon=/usr/sbin/"$RC_SVCNAME" +command_args="$CONSUL_TEMPLATE_ARGS -config ${CONFIG:-/etc/$RV_SVCNAME/$RC_SVCNAME.hcl" + +depend() { + after vault consul +} + +reload() { + ebegin "Reloading $RC_SVCNAME configuration" + $supervisor "$RC_SVCNAME" --signal HUP + eend $? +} |
