elasticsearch service: remove postStart script

This commit is contained in:
Tristan Helmich 2017-05-11 12:09:41 +02:00
parent b07e04882e
commit d25bf8e72f

View File

@ -148,11 +148,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 ];