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
* feat: add "critical" and "success_codes" field to unit, #12
* feat: add SuccessCodes support to mexec
* feat: update runner signature
* feat: fexit if short unit failed with critical
* feat: fexit if long running unit failed with critical
Copy file name to clipboardExpand all lines: README.md
+33-1Lines changed: 33 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -128,10 +128,17 @@ command:
128
128
- once
129
129
```
130
130
131
-
By default `once` units will block other `minit` units until finished.
131
+
**Non-blocking**
132
+
133
+
By default, `once` units will block other `minit` units until finished.
132
134
133
135
Set `blocking: false` to run `once` units in background.
134
136
137
+
**Critical**
138
+
139
+
If `critical` field is set to `true`, `minit` will stop if this unit failed.
140
+
141
+
135
142
### 3.3 Type: `daemon`
136
143
137
144
`daemon`units execute after `render` and `once`. It runs long-running command.
@@ -311,6 +318,31 @@ Example:
311
318
MINIT_DISABLE=once-demo,@demo
312
319
```
313
320
321
+
## 4.7 Critical Units
322
+
323
+
If `critical` field is set to `true`, `minit` will stop if this unit failed.
324
+
325
+
By specifying the `success_codes` field for `once`, `daemon` and `cron` units, `minit` will interpret exit codes within the provided list as indicative of success.
0 commit comments