Timeline for start multiple terminal windows in a "process group" so that remaining processes can be killed, if any one of the processes terminates
Current License: CC BY-SA 4.0
8 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Jan 21, 2024 at 18:00 | comment | added | meuh |
@MC68020 yes, wait -n is not in all shells, but some systems link sh to bash and that accepts wait -n, and otherwise bash is often available in distributions.
|
|
| Jan 21, 2024 at 17:19 | comment | added | MC68020 | @meuh… is'nt wait -n exclusively bash ? (When apparently OP's scripts is sh ?) | |
| Jan 21, 2024 at 17:18 | comment | added | Martin Vegter |
@meuh - sorry, but I am not using systemd. I am using sysvinit. I did not specify this in my question, because I did not anticipate it would be relevant.
|
|
| Jan 21, 2024 at 17:02 | comment | added | meuh |
I meant to say add a wait -n, not just a wait. This wait will return when any background process exits. This makes the script finish, and systemd kills the other processes in the control group as the unit stops.
|
|
| Jan 21, 2024 at 17:00 | history | edited | meuh | CC BY-SA 4.0 |
added 3 characters in body
|
| Jan 21, 2024 at 16:33 | comment | added | MC68020 | Sorry but I fail to understand how the termination of one process would consequently trigger the termination of others of the same unit. | |
| Jan 21, 2024 at 15:53 | history | edited | meuh | CC BY-SA 4.0 |
added 62 characters in body
|
| Jan 21, 2024 at 15:46 | history | answered | meuh | CC BY-SA 4.0 |