summaryrefslogtreecommitdiff
path: root/extra/oxidized.init
diff options
context:
space:
mode:
authorytti <saku@ytti.fi>2017-03-22 18:02:01 +0200
committerGitHub <noreply@github.com>2017-03-22 18:02:01 +0200
commite4f4b4bdf48c7a1cf604841a3a8999f4408efdbb (patch)
tree3f0c00581cec41721b6370b99d41b05cb53e06de /extra/oxidized.init
parent5c5e8e0ee15f4b8098a7e01ee5b2da8fe0d1ed8e (diff)
parent155d13a045a59f708ea0195e7ae91cbbbd75f7e8 (diff)
Merge pull request #779 from MajesticFalcon/master
Edit init script
Diffstat (limited to 'extra/oxidized.init')
-rwxr-xr-xextra/oxidized.init6
1 files changed, 3 insertions, 3 deletions
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