From 21e1d19ef524871eda8243ab63e35e7895377a5c Mon Sep 17 00:00:00 2001 From: Jonathan Budzenski Date: Fri, 1 Jul 2016 09:41:51 -0500 Subject: [PATCH] Backport PR #7593 --------- **Commit 1:** [build] Add package log path * Original sha: f781c8035875ca866da8725f5d3736f69ba7bbb6 * Authored by Jonathan Budzenski on 2016-06-30T16:06:10Z --- tasks/build/pleaserun.js | 2 +- tasks/config/packages.js | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/tasks/build/pleaserun.js b/tasks/build/pleaserun.js index 33777b9991485..ee608228bdd1c 100644 --- a/tasks/build/pleaserun.js +++ b/tasks/build/pleaserun.js @@ -19,7 +19,7 @@ export default (grunt) => { '--description', capitalize(name), '--user', user, '--group', group, - '--sysv-log-path', path.logs, + '--sysv-log-path', `${path.logs}/`, '-p', service.name, '-v', service.version, path.kibanaBin diff --git a/tasks/config/packages.js b/tasks/config/packages.js index d7fa93c4f62f5..2aa45957ec4cc 100644 --- a/tasks/config/packages.js +++ b/tasks/config/packages.js @@ -15,6 +15,7 @@ export default (grunt) => { const FOLDER_CONFIG = '/opt/kibana/config'; const FOLDER_HOME = '/opt/kibana'; const FOLDER_DATA = '/var/lib/kibana'; + const FOLDER_LOGS = '/var/log/kibana'; const FOLDER_PLUGINS = `${FOLDER_HOME}/installedPlugins`; const FILE_KIBANA_CONF = `${FOLDER_CONFIG}/kibana.yml`; @@ -46,6 +47,7 @@ export default (grunt) => { conf: FOLDER_CONFIG, data: FOLDER_DATA, plugins: FOLDER_PLUGINS, + logs: FOLDER_LOGS, home: FOLDER_HOME, kibanaBin: FILE_KIBANA_BINARY, kibanaConfig: FILE_KIBANA_CONF