Merge pull request #25701 from mayflower/elasticsearch_postStart_script_removal

elasticsearch service: remove postStart script
This commit is contained in:
Joachim F 2017-06-13 00:13:05 +01:00 committed by GitHub
commit 76430ecd9f

View File

@ -188,11 +188,6 @@ in {
ln -sfT ${cfg.package}/modules ${cfg.dataDir}/modules
if [ "$(id -u)" = 0 ]; then chown -R elasticsearch ${cfg.dataDir}; fi
'';
postStart = mkBefore ''
until ${pkgs.curl.bin}/bin/curl -s -o /dev/null ${cfg.listenAddress}:${toString cfg.port}; do
sleep 1
done
'';
};
environment.systemPackages = [ cfg.package ];