Replace ps for pgrep to list evobackup child procs #29
Loading…
Reference in a new issue
No description provided.
Delete branch "pgrep"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The command being used to identify evobackup child processes isn't
supported on OpenBSD.
$ ps h --ppid "${pid}" -o pid | tr -s '\n' ' '
ps: unknown option -- -
usage: ps [-AaceHhjkLlmrSTuvwx] [-M core] [-N system] [-O fmt] [-o fmt] [-p pid] [-t tty] [-U username] [-W swap]
That said both Linux and OpenBSD support the use of pgrep.
$ pgrep -P "${pid}"
I suggest to replace ps for pgrep in that case then.
Looks good to me