summaryrefslogtreecommitdiff
path: root/extra
diff options
context:
space:
mode:
authorMatthias Cramer <matthias.cramer@iway.ch>2017-03-24 00:09:39 +0100
committerMatthias Cramer <matthias.cramer@iway.ch>2017-03-24 00:09:39 +0100
commit0912287387c60533d42776dbae7127cdcee026c6 (patch)
tree72514ea1c4dae7ba9add5d06776ba06e7ef03833 /extra
parent258ccbc0456798be8fe0a45952a48fba60392fa8 (diff)
parent4a67e27742c0ab8ed6cd8421d34c01c0de588705 (diff)
Merge remote-tracking branch 'upstream/master'
Diffstat (limited to 'extra')
-rwxr-xr-xextra/auto-reload-config.runit2
-rwxr-xr-xextra/oxidized.init6
2 files changed, 4 insertions, 4 deletions
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
diff --git a/extra/oxidized.init b/extra/oxidized.init
index 197c5b1..7a9698d 100755
--- a/extra/oxidized.init
+++ b/extra/oxidized.init
@@ -14,12 +14,12 @@
set -e
-PATH=/sbin:/bin:/usr/sbin:/usr/bin
-DAEMON=/home/sts/oxidized/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=""
-USER="sts"
+USER="oxidized"
test -x $DAEMON || exit 0