mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-07-07 19:15:36 +03:00
nixos/elasticsearch: wait for start
This commit is contained in:
parent
f7ba3d833f
commit
d6f9878fbf
1 changed files with 5 additions and 0 deletions
|
@ -135,6 +135,11 @@ in {
|
|||
rm ${cfg.dataDir}/plugins || true
|
||||
ln -s ${esPlugins}/plugins ${cfg.dataDir}/plugins
|
||||
'';
|
||||
postStart = mkBefore ''
|
||||
until ${pkgs.curl}/bin/curl -s -o /dev/null ${cfg.host}:${toString cfg.port}; do
|
||||
sleep 1
|
||||
done
|
||||
'';
|
||||
};
|
||||
|
||||
environment.systemPackages = [ pkgs.elasticsearch ];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue