From 3e72b6a35f2aff6a299019c34f4b57e97ba480aa Mon Sep 17 00:00:00 2001 From: Mike Bryant Date: Tue, 19 Jan 2016 14:04:29 +0000 Subject: Switch to phusion's docker-baseimage, to get service management and process reaping --- extra/oxidized.runit | 2 ++ 1 file changed, 2 insertions(+) create mode 100755 extra/oxidized.runit (limited to 'extra') diff --git a/extra/oxidized.runit b/extra/oxidized.runit new file mode 100755 index 0000000..c4ce129 --- /dev/null +++ b/extra/oxidized.runit @@ -0,0 +1,2 @@ +#!/bin/bash +exec setuser root oxidized -- cgit v1.2.1 From eb3d86fe6debc286d74e0eed5a61d5a564b324c4 Mon Sep 17 00:00:00 2001 From: Mike Bryant Date: Tue, 19 Jan 2016 14:07:54 +0000 Subject: Add the option of automatically reloading the config every X seconds. Fixes #271 --- extra/auto-reload-config.runit | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100755 extra/auto-reload-config.runit (limited to 'extra') diff --git a/extra/auto-reload-config.runit b/extra/auto-reload-config.runit new file mode 100755 index 0000000..5eaecc8 --- /dev/null +++ b/extra/auto-reload-config.runit @@ -0,0 +1,12 @@ +#!/bin/bash + +if [ -z "$CONFIG_RELOAD_INTERVAL" ]; then + # Just stop and do nothing + read +fi + +while true; do + sleep $CONFIG_RELOAD_INTERVAL + echo "Reloading config..." + curl -s http://localhost:8888/reload?format=json -O /dev/null +done -- cgit v1.2.1