The image creates SWW_STATE_DIR when it is missing (closes #337)
check / check (push) Waiting to run
check / check (push) Waiting to run
Before waf starts, share/sww.run makes SWW_STATE_DIR if it is missing, gives it to sww:sww and sets its mode to 0700. A setting that is not an absolute path, or a SWW_STATE_DIR_FILE that cannot be read, still changes nothing. script/example-app now checks that a waf container whose SWW_STATE_DIR does not exist becomes healthy with the directory made for sww, mode 0700. Model: opus-5-5
This commit is contained in:
1 parent
b93bad5842
commit
82adb13a0d
6 files changed
+40
-32
No files matched your search
+1
-1
@@ -53,7 +53,7 @@ the two (see "The image's command" below).
|
||||
## State and cache files
|
||||
|
||||
- `SWW_STATE_DIR` (default `/var/lib/sww`): the directory of the state files, an
|
||||
absolute path that exists and can be written.
|
||||
absolute path that can be written. The image's `run` script makes it.
|
||||
- `SWW_STATE_WRITE_DELAY` (default `10s`): how long `bans.json` waits to be
|
||||
written after a ban is made, lifted or made permanent. A duration.
|
||||
- `SWW_STATE_COUNTER_INTERVAL` (default `15m`): how often every state and cache
|
||||
|
||||
Reference in new issue
Block a user