aboutsummaryrefslogtreecommitdiff
path: root/.gitignore
diff options
context:
space:
mode:
authorJohn Ericson <John.Ericson@Obsidian.Systems>2021-12-09 15:16:18 +0000
committerJohn Ericson <John.Ericson@Obsidian.Systems>2023-02-23 11:31:44 -0500
commit87da941348e1b345d1be348b091d3ae65ac66bb7 (patch)
tree443b357d8d5e7cc97853a84b3b3cc03f533df9a7 /.gitignore
parent5dbbf233327bff1c89088ed0fc45882563240b1a (diff)
Clean up daemon handling
Split `common.sh` into the vars and functions definitions vs starting the daemon (and possibly other initialization logic). This way, `init.sh` can just `source` the former. Trying to start the daemon before `nix.conf` is written will fail because `nix daemon` requires `--experimental-features 'nix-command'`. `killDaemon` is idempotent, so it's safe to call when no daemon is running. `startDaemon` and `killDaemon` use the PID (which is now exported to subshells) to decide whether there is work to be done, rather than `NIX_REMOTE`, which might conceivably be set differently even if a daemon is running. `startDaemon` and `killDaemon` can save/restore the old `NIX_REMOTE` as `NIX_REMOTE_OLD`. `init.sh` kills daemon before deleting everything (including the daemon socket).
Diffstat (limited to '.gitignore')
-rw-r--r--.gitignore2
1 files changed, 1 insertions, 1 deletions
diff --git a/.gitignore b/.gitignore
index 83313fe0a..e326966d6 100644
--- a/.gitignore
+++ b/.gitignore
@@ -75,7 +75,7 @@ perl/Makefile.config
# /tests/
/tests/test-tmp
-/tests/common.sh
+/tests/common/vars-and-functions.sh
/tests/result*
/tests/restricted-innocent
/tests/shell