You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@metron.apache.org by ma...@apache.org on 2017/06/26 17:27:25 UTC
[04/18] metron git commit: METRON-978 Management UI init script uses
hard-coded METRON_HOME (merrimanr) closes apache/metron#604
METRON-978 Management UI init script uses hard-coded METRON_HOME (merrimanr) closes apache/metron#604
Project: http://git-wip-us.apache.org/repos/asf/metron/repo
Commit: http://git-wip-us.apache.org/repos/asf/metron/commit/43e529fe
Tree: http://git-wip-us.apache.org/repos/asf/metron/tree/43e529fe
Diff: http://git-wip-us.apache.org/repos/asf/metron/diff/43e529fe
Branch: refs/heads/Metron_0.4.0
Commit: 43e529fe003b84c585555be9f25a4ff49d769132
Parents: d5abcf4
Author: merrimanr <me...@gmail.com>
Authored: Mon Jun 5 16:48:49 2017 -0500
Committer: merrimanr <me...@apache.org>
Committed: Mon Jun 5 16:48:49 2017 -0500
----------------------------------------------------------------------
metron-interface/metron-config/scripts/metron-management-ui | 5 +++++
1 file changed, 5 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/metron/blob/43e529fe/metron-interface/metron-config/scripts/metron-management-ui
----------------------------------------------------------------------
diff --git a/metron-interface/metron-config/scripts/metron-management-ui b/metron-interface/metron-config/scripts/metron-management-ui
index 32b4e9e..34c0cb6 100644
--- a/metron-interface/metron-config/scripts/metron-management-ui
+++ b/metron-interface/metron-config/scripts/metron-management-ui
@@ -33,6 +33,11 @@ METRON_LOG_DIR="/var/log/metron"
METRON_PID_DIR="/var/run/metron"
METRON_USER="metron"
METRON_GROUP="metron"
+METRON_SYSCONFIG="/etc/sysconfig/metron"
+if [ -f "$METRON_SYSCONFIG" ]; then
+ set -a
+ . "$METRON_SYSCONFIG"
+fi
PIDFILE="$METRON_PID_DIR/$NAME.pid"
LOCKFILE=/var/lock/subsys/$NAME