nixos/logstash: Don't set unnecessary JAVA_HOME

This commit is contained in:
Robert Hensing 2021-03-22 14:19:34 +01:00
parent 4787a38c70
commit e7e6e8d5c3

View file

@ -159,10 +159,9 @@ in
###### implementation
config = mkIf cfg.enable {
systemd.services.logstash = with pkgs; {
systemd.services.logstash = {
description = "Logstash Daemon";
wantedBy = [ "multi-user.target" ];
environment = { JAVA_HOME = jre; };
path = [ pkgs.bash ];
serviceConfig = {
ExecStartPre = ''${pkgs.coreutils}/bin/mkdir -p "${cfg.dataDir}" ; ${pkgs.coreutils}/bin/chmod 700 "${cfg.dataDir}"'';