Rename nix-worker to nix-daemon

This commit is contained in:
Eelco Dolstra 2012-10-03 17:57:20 -04:00
parent 522ecab9b8
commit e35d6f78dc
15 changed files with 49 additions and 41 deletions

View file

@ -59,9 +59,9 @@ clearManifests() {
startDaemon() {
# Start the daemon, wait for the socket to appear. !!!
# nix-worker should have an option to fork into the background.
# nix-daemon should have an option to fork into the background.
rm -f $NIX_STATE_DIR/daemon-socket/socket
nix-worker --daemon &
nix-daemon &
for ((i = 0; i < 30; i++)); do
if [ -e $NIX_STATE_DIR/daemon-socket/socket ]; then break; fi
sleep 1