Fix service to use logstash new directory layout

This commit is contained in:
William Roe 2014-07-21 16:24:18 +01:00
parent b6c2dc4e4f
commit 8f31b13938

View File

@ -69,9 +69,9 @@ in
systemd.services.logstash = with pkgs; { systemd.services.logstash = with pkgs; {
description = "Logstash Daemon"; description = "Logstash Daemon";
wantedBy = [ "multi-user.target" ]; wantedBy = [ "multi-user.target" ];
environment = { JAVA_HOME = jre; };
serviceConfig = { serviceConfig = {
ExecStart = "${jre}/bin/java -jar ${logstash} agent -f ${writeText "logstash.conf" '' ExecStart = "${logstash}/bin/logstash agent -f ${writeText "logstash.conf" ''
input { input {
${cfg.inputConfig} ${cfg.inputConfig}
} }