3
0
Fork 0
forked from mirrors/nixpkgs

nixos/rabbitmq: wait for start

This commit is contained in:
Jaka Hudoklin 2014-09-13 02:16:53 +02:00
parent a23e4997d3
commit 26fd945151

View file

@ -89,6 +89,8 @@ in {
wantedBy = [ "multi-user.target" ];
after = [ "network-interfaces.target" ];
path = [ pkgs.rabbitmq_server ];
environment = {
RABBITMQ_MNESIA_BASE = "${cfg.dataDir}/mnesia";
RABBITMQ_NODE_IP_ADDRESS = cfg.listenAddress;
@ -119,6 +121,8 @@ in {
mkdir -p /var/log/rabbitmq && chmod 0700 /var/log/rabbitmq
chown rabbitmq:rabbitmq /var/log/rabbitmq
'';
postStart = mkBefore "until rabbitmqctl status; do sleep 1; done";
};
};