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:
parent
28ef6ebf91
commit
7a472a76d4
5 changed files with 98 additions and 44 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue