ctdb-scripts: Improve service PID check
commit27c53880c2a35a320bc31655ada3367d1be02b19
authorMartin Schwenke <mschwenke@ddn.com>
Fri, 10 May 2024 07:46:58 +0000 (10 17:46 +1000)
committerVolker Lendecke <vl@samba.org>
Thu, 30 May 2024 11:42:30 +0000 (30 11:42 +0000)
treeee2e7b876b6f2576db71b944b5ce46c0116c2f1e
parentbc10704aec66e143b8c9e715a74ddb82f44a3204
ctdb-scripts: Improve service PID check

No need to grovel around in /proc.  ps will happily tell us the
command.

Factor out the actual check into a separate function that can be used
elsewhere.

Signed-off-by: Martin Schwenke <mschwenke@ddn.com>
Reviewed-by: Volker Lendecke <vl@samba.org>
ctdb/doc/examples/nfs-ganesha-callout