Commit Graph

16 Commits

Author SHA1 Message Date
Brian Picciano
30159d80b2 Introduce StartAfterFunc 2022-10-20 20:52:52 +02:00
Brian Picciano
d0696182e1 Relocate package to code.betamike.com 2022-10-20 20:47:06 +02:00
Brian Picciano
a451ee620c Clean up return values from RunProcessOne 2022-06-30 13:42:57 -06:00
Brian Picciano
881bd83086 Spawn child processes in separate process groups
This way signals sent to the parent will not be propagated to the
children. The only way to kill children is by cancelling the context
passed into the Run method being used.
2022-06-30 13:31:32 -06:00
Brian Picciano
8fb99b53d7 Expose Run from pmuxlib (renamed from pmuxproc) 2022-06-18 19:52:04 -06:00
Brian Picciano
cfc6166135 make casing of noRestartOn match other yaml fields 2022-02-27 13:26:18 -07:00
Brian Picciano
b4c6787a98 Don't explicitly send interrupt signal to child processes
Apparently the way that process groups work is that child processes will
automatically have all signals propagated to them, so there's no need to
do it explicitly, pmux only needs to wait for them to exit.
2022-02-27 11:45:33 -07:00
Brian Picciano
05c959eba7 Refactor logging to separate stdout/stdout/system lines
The new logging differentiates between stdout, stderr, and system log
lines much better. The flushing logic has also been simplified, so lines
should appear on the terminal when expected (though possibly with lower
performance, will need to keep an eye on this).
2022-02-27 11:12:26 -07:00
Brian Picciano
ea5e7c9e1c make time formatting be optional 2022-02-27 10:37:22 -07:00
Brian Picciano
2c5c669c72 add NoRestartOn config parameter 2022-02-24 20:48:37 -07:00
Brian Picciano
20cb7b9255 inherit environment from the parent process 2022-01-22 20:57:59 -07:00
Brian Picciano
530c868949 expose Dir from pmuxprox.Config 2022-01-22 20:39:34 -07:00
Brian Picciano
3057f470d4 Expose RunProcessOnce and PlainLogger 2022-01-22 20:36:07 -07:00
Brian Picciano
fd793d4f81 break pmuxproc out, make logger better, and properly set import path in go.mod 2022-01-22 20:03:19 -07:00
Brian Picciano
56635e63aa typo in README 2021-09-21 19:10:22 -06:00
Brian Picciano
fe90e93fad initial commit 2021-09-21 16:36:50 -06:00