From 7aec215402da7be6003af6dfb888c843990db09e Mon Sep 17 00:00:00 2001 From: James Le Cuirot Date: Tue, 2 May 2017 12:34:37 +0100 Subject: [PATCH] Write logs to /var/log/kibana /etc/sv/kibana/log/main is a very odd place to write logs. Although the runit manual mentions ./main as an example, the runit cookbook uses /var/log/ if you enable the default logger. The log template in this cookbook is otherwise identical to the default so we may as well remove it. --- recipes/install.rb | 1 + templates/default/sv-kibana-log-run.erb | 2 -- 2 files changed, 1 insertion(+), 2 deletions(-) delete mode 100644 templates/default/sv-kibana-log-run.erb diff --git a/recipes/install.rb b/recipes/install.rb index 9bbedd1..7ead853 100644 --- a/recipes/install.rb +++ b/recipes/install.rb @@ -83,6 +83,7 @@ home: "#{node['kibana']['install_dir']}/current" ) cookbook 'kibana_lwrp' + default_logger true node['kibana']['service']['options'].each do |option_name, option_value| send(option_name, option_value) diff --git a/templates/default/sv-kibana-log-run.erb b/templates/default/sv-kibana-log-run.erb deleted file mode 100644 index a79a518..0000000 --- a/templates/default/sv-kibana-log-run.erb +++ /dev/null @@ -1,2 +0,0 @@ -#!/bin/sh -exec svlogd -tt ./main