3
0
Fork 0
forked from mirrors/nixpkgs

elasticsearch: Fix error in NixOS module, systemd ExecStart path must be absolute.

This commit is contained in:
Rickard Nilsson 2014-07-28 20:12:19 +02:00
parent 212f476c97
commit f5d0d8dbf1

View file

@ -122,9 +122,8 @@ in {
wantedBy = [ "multi-user.target" ];
after = [ "network-interfaces.target" ];
environment = { ES_HOME = cfg.dataDir; };
path = [ pkgs.elasticsearch ];
serviceConfig = {
ExecStart = "elasticsearch -Des.path.conf=${configDir} ${toString cfg.extraCmdLineOptions}";
ExecStart = "${pkgs.elasticsearch}/bin/elasticsearch -Des.path.conf=${configDir} ${toString cfg.extraCmdLineOptions}";
User = "elasticsearch";
PermissionsStartOnly = true;
};