Add locking via flock(1) #25

Merged
MatthewCroughan merged 2 commits from mc/flocking into master 2022-09-12 17:58:39 +00:00

2 commits

Author SHA1 Message Date
matthewcroughan
aa9b423354 Add locking via flock(1)
This adds basic advisory locking such that two Nixinate deployments do
not run the activation script at the same time, both for local and
remote. The default timeout is 60 seconds, and is currently
unconfigurable.
2022-08-19 05:45:57 +01:00
matthewcroughan
1a19e15736 Use doubled quotes instead of single quotes for SSH commands
This makes writing commands a little easier without escaping everything
2022-08-19 04:51:42 +01:00