On 2023-04-25, rea...@catastrophe.net <rea...@catastrophe.net> wrote: > So if ${daemon} is declared as "autossh", using the built-in > pexp="${daemon}:.*" would kill off multiple running autossh > instances.
The idea is that pexp should have a bit more of the command line so it only matches the process started by that rc script. Using .* there is not best practice.