-k, --kill-after
Also send a KILL signal if COMMAND is still running this long after the initial signal was sent (DURATION).
An option of timeoutx.
Usage
timeoutx -k DURATION [OPTION] DURATION COMMAND [ARG]...
timeoutx --kill-after=DURATION [OPTION] DURATION COMMAND [ARG]...Details
| Short | Long | Value | Default | Meaning |
|---|---|---|---|---|
-k | --kill-after | DURATION | also send a KILL signal if COMMAND is still running this long after the initial signal was sent (DURATION) |
Examples
Kill a server that ignores TERM 10 seconds after asking it to stop
timeoutx -k 10s 1h ./serverHelp in the terminal
gnux help timeoutx --kill-after