You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 7261d8b
Browse filesBrowse the repository at this point in the historyBrowse files
Keep the lock on one persistent inode without requiring private read access to the whole data directory. Check its type, owner and permissions before flock, and verify that exec releases the descriptor.
Document storage cutovers as offline operations: guest metadata and socket paths retain the configured directory name.
Hypeman stores data in a configurable directory. Configure permissions for this directory.
232
+
Only the daemon account and trusted administrators should be able to write to `data_dir`.
233
233
234
234
```bash
235
235
sudo mkdir /var/lib/hypeman
236
236
sudo chown $USER:$USER /var/lib/hypeman
237
237
```
238
238
239
+
The API takes an exclusive lock on `<data_dir>/.hypeman.lock` before loading guest state.
240
+
Leave this file in place across restarts; the OS releases the lock when the process exits.
241
+
Stop the old API process before upgrading or downgrading, because older versions do not take this lock.
242
+
243
+
Guest metadata and socket paths use the configured directory name. Stop the guests and the API before moving or remounting the directory or repointing a symlink in its path.
244
+
239
245
### Dockerhub login
240
246
241
247
Requires Docker Hub authentication to avoid rate limits when running the tests:
@@ -271,8 +277,7 @@ The server will start on port 4973 (configurable via `port` in config.yaml).
271
277
### Shared-Machine Local Config
272
278
273
279
When developing on a shared host, avoid global paths like `/etc/hypeman` and `/var/lib/hypeman`.
274
-
Only one API process can use a data directory at a time. Stop the old process before upgrading or downgrading; older versions do not take the directory lock.
275
-
Use a workspace-local config and data directory instead:
280
+
Use a workspace-local config and [data directory](#data-directory) instead:
0 commit comments