Merge pull request #9355 from offlinehacker/nixos/etcd/fixstart

etcd service: do not wait for cluster up
This commit is contained in:
Jaka Hudoklin 2015-08-20 02:26:49 +02:00
commit d06eb2951b

View File

@ -122,14 +122,6 @@ in {
mkdir -m 0700 -p ${cfg.dataDir}
if [ "$(id -u)" = 0 ]; then chown etcd ${cfg.dataDir}; fi
'';
postStart = ''
until ${pkgs.etcdctl}/bin/etcdctl set /nixos/state 'up'; do
sleep 1;
done
until ${pkgs.etcdctl}/bin/etcdctl get /nixos/state | grep up; do
sleep 1;
done
'';
};
environment.systemPackages = [ pkgs.etcdctl ];