Skip to content

Commit 9344fac

Browse files
Add ready_log_line (#67)
1 parent 8a6fae4 commit 9344fac

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
- ~~#54: Add `apiServer` option to control REST API server~~
1212
- $60: Add `httpServer.{enable, port, uds}` options to control the HTTP server.
1313
- #56: Add `preHook` and `postHook` for running commands before and after launching process-compose respectively.
14+
- #67: Add `ready_log_line`
1415
- Notable changes
1516
- #58: Obviate IFD by switching to JSON config
1617
- Fixes

nix/process-compose/settings/process.nix

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ in
2828
"process_completed"
2929
"process_completed_successfully"
3030
"process_healthy"
31+
"process_log_ready"
3132
"process_started"
3233
];
3334
example = "process_healthy";
@@ -133,6 +134,17 @@ in
133134
The settings used to check if the process is alive.
134135
'';
135136
};
137+
ready_log_line = mkOption {
138+
type = types.nullOr types.str;
139+
default = null;
140+
example = "process is ready";
141+
description = ''
142+
A string to search for in the output of the command that indicates
143+
the process is ready. String will be part of a regex '.*{ready_log_line}.*'.
144+
This should be used for long running processes that do not have a
145+
readily accessible check for http or similar other checks.
146+
'';
147+
};
136148

137149
namespace = mkOption {
138150
type = types.str;

0 commit comments

Comments
 (0)