1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-07-07 10:11:47 +02:00

Add 'nix daemon' command

This commit is contained in:
Eelco Dolstra 2021-01-14 00:05:04 +01:00
parent 28ef6ebf91
commit 7a472a76d4
5 changed files with 98 additions and 44 deletions

View file

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