From f781c8035875ca866da8725f5d3736f69ba7bbb6 Mon Sep 17 00:00:00 2001 From: Jonathan Budzenski Date: Thu, 30 Jun 2016 11:06:10 -0500 Subject: [PATCH] [build] Add package log path --- 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 adb9af1868215..58c51238d23c4 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 1c6aef8c2934c..f6876bfee685c 100644 --- a/tasks/config/packages.js +++ b/tasks/config/packages.js @@ -15,6 +15,7 @@ export default (grunt) => { const FOLDER_CONFIG = '/etc/kibana'; const FOLDER_HOME = '/usr/share/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