3
0
Fork 0
forked from mirrors/nixpkgs

elasticsearch: run preStart as root, to allow creating the necessary directories.

This commit is contained in:
Rob Vermaas 2014-06-13 13:42:52 +02:00
parent 1ecb9b8de8
commit 40566790d3

View file

@ -106,6 +106,7 @@ in {
serviceConfig = {
ExecStart = "${pkgs.elasticsearch}/bin/elasticsearch -f -Des.path.conf=${configDir}";
User = "elasticsearch";
PermissionsStartOnly = true;
};
preStart = ''
mkdir -m 0700 -p ${cfg.dataDir}