diff options
| author | Laurent Bercot <ska-skaware@skarnet.org> | 2026-06-19 21:09:11 +0000 |
|---|---|---|
| committer | Laurent Bercot <ska-skaware@skarnet.org> | 2026-06-19 21:09:11 +0000 |
| commit | feb8dfb10a78d17c66cc1b89382265503c165799 (patch) | |
| tree | 94dfea844c3b41efc3a1c846f2109593c1df9c81 /src | |
| parent | df4ef051a22efaf165b28f5343210278dca58aaa (diff) | |
| download | s6-feb8dfb10a78d17c66cc1b89382265503c165799.tar.gz | |
Fix s6-instance-maker invocation of s6-svscan
Diffstat (limited to 'src')
| -rw-r--r-- | src/instance/s6-instance-maker.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/instance/s6-instance-maker.c b/src/instance/s6-instance-maker.c index d0875e0..b986727 100644 --- a/src/instance/s6-instance-maker.c +++ b/src/instance/s6-instance-maker.c @@ -47,7 +47,7 @@ static int write_run (buffer *b, void *data) || buffer_put(b, "\n", 1) < 0) goto err ; sa.len = 0 ; } - if (buffer_puts(b, S6_EXTBINPREFIX "s6-svscan -d3 -c") < 0 + if (buffer_puts(b, S6_EXTBINPREFIX "s6-svscan -d3 -C") < 0 || buffer_put(b, fmt, l) < 0 || buffer_putsflush(b, " -- instance\n") < 0) return 0 ; return 1 ; @@ -124,6 +124,7 @@ int main (int argc, char const *const *argv) strerr_dief1x(100, "invalid user") ; if (maxinstances < 1) maxinstances = 1 ; if (maxinstances > 90000) maxinstances = 90000 ; + if (logdir && !rcinfo[0]) maxinstances <<= 1 ; if (rcinfo[0]) { if (strchr(rcinfo[0], '\n')) @@ -137,7 +138,7 @@ int main (int argc, char const *const *argv) if (!rcinfo[1][0]) strerr_dief1x(100, "argument to -r must be: service or service/logger or service/logger/pipeline") ; if (rcinfo[1][0] == '/') strerr_dief2x(100, "logger", " name cannot be empty") ; - if (!logdir) strerr_dief1x(100, "logger specifiec (-r) but logdir not specified (-L)") ; + if (!logdir) strerr_dief1x(100, "logger specified (-r) but logdir not specified (-L)") ; rcinfo[2] = strchr(rcinfo[1], '/') ; if (rcinfo[2]) { |
