From 565069279026eb99f10c674c3c9ddbc015b07cae Mon Sep 17 00:00:00 2001 From: Ben White Date: Wed, 22 Mar 2017 12:55:55 +0000 Subject: fix for auto-reload. 'read' doesn't block when stdin not attached to anything --- extra/auto-reload-config.runit | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'extra') diff --git a/extra/auto-reload-config.runit b/extra/auto-reload-config.runit index 5eaecc8..cf6e7c2 100755 --- a/extra/auto-reload-config.runit +++ b/extra/auto-reload-config.runit @@ -2,7 +2,7 @@ if [ -z "$CONFIG_RELOAD_INTERVAL" ]; then # Just stop and do nothing - read + sleep infinity fi while true; do -- cgit v1.2.1 From d458417476c505c26783f7d1a1bcce9fa5b60309 Mon Sep 17 00:00:00 2001 From: Schylar Utley Date: Wed, 22 Mar 2017 08:54:53 -0500 Subject: Edit init script --- extra/oxidized.init | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'extra') diff --git a/extra/oxidized.init b/extra/oxidized.init index 197c5b1..8a996c2 100755 --- a/extra/oxidized.init +++ b/extra/oxidized.init @@ -15,11 +15,11 @@ set -e PATH=/sbin:/bin:/usr/sbin:/usr/bin -DAEMON=/home/sts/oxidized/bin/oxidized +DAEMON=PATH_TO_OXIDIZED_BIN NAME="oxidized" DESC="Oxidized - Network Device Configuration Backup Tool" ARGS="" -USER="sts" +USER="USER_FOR_OXIDIZED_SERVICE" test -x $DAEMON || exit 0 -- cgit v1.2.1 From 50a589265fa240de2d7e918cb4cca488684d2ee1 Mon Sep 17 00:00:00 2001 From: Schylar Utley Date: Wed, 22 Mar 2017 10:04:52 -0500 Subject: Update oxidized.init --- extra/oxidized.init | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'extra') diff --git a/extra/oxidized.init b/extra/oxidized.init index 8a996c2..64758fb 100755 --- a/extra/oxidized.init +++ b/extra/oxidized.init @@ -15,11 +15,11 @@ set -e PATH=/sbin:/bin:/usr/sbin:/usr/bin -DAEMON=PATH_TO_OXIDIZED_BIN +DAEMON=/usr/local/bin/oxidized NAME="oxidized" DESC="Oxidized - Network Device Configuration Backup Tool" ARGS="" -USER="USER_FOR_OXIDIZED_SERVICE" +USER="oxidized" test -x $DAEMON || exit 0 -- cgit v1.2.1 From 155d13a045a59f708ea0195e7ae91cbbbd75f7e8 Mon Sep 17 00:00:00 2001 From: Schylar Utley Date: Wed, 22 Mar 2017 11:01:23 -0500 Subject: Update oxidized.init --- extra/oxidized.init | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'extra') diff --git a/extra/oxidized.init b/extra/oxidized.init index 64758fb..7a9698d 100755 --- a/extra/oxidized.init +++ b/extra/oxidized.init @@ -14,8 +14,8 @@ set -e -PATH=/sbin:/bin:/usr/sbin:/usr/bin -DAEMON=/usr/local/bin/oxidized +PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/bin +DAEMON=$(which oxidized) NAME="oxidized" DESC="Oxidized - Network Device Configuration Backup Tool" ARGS="" -- cgit v1.2.1