Whamcloud - gitweb
LU-14034 hsm: add PID file handling to lhsmtool_posix 53/40253/9
authorJohn L. Hammond <jhammond@whamcloud.com>
Tue, 29 Dec 2020 02:10:31 +0000 (21:10 -0500)
committerOleg Drokin <green@whamcloud.com>
Fri, 22 Jan 2021 21:53:21 +0000 (21:53 +0000)
commit71a4616b38e81d021a65ee5305b692b271ed0955
treed6f25e582103e31a02ea5de6589931766de84ae1
parent43979e4e257e78d3d94ea3f21b65fdebbbdc690f
LU-14034 hsm: add PID file handling to lhsmtool_posix

Add pid-file handling to lhsmtool_posix to prevent accidentally
running concurrent instances of the copytool. (Multiple instances are
still allowed if you do not use PID files or use separate files.)

Use the PID file to avoid needing libtool when stopping, continuing,
or killing the copytool from test scripts.

Remove unnecessary libtool usage from test scripts.

Signed-off-by: John L. Hammond <jhammond@whamcloud.com>
Change-Id: I4f012a88c58f3a86a731df3b7d35ff32db047c2d
Reviewed-on: https://review.whamcloud.com/40253
Tested-by: Maloo <maloo@whamcloud.com>
Tested-by: jenkins <devops@whamcloud.com>
Reviewed-by: James Simmons <jsimmons@infradead.org>
Reviewed-by: Ben Evans <beevans@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
debian/control
debian/control.main
lustre.spec.in
lustre/tests/conf-sanity.sh
lustre/tests/sanity-hsm.sh
lustre/tests/test-framework.sh
lustre/utils/Makefile.am
lustre/utils/lhsmtool_posix.c
lustre/utils/pid_file.c [new file with mode: 0644]
lustre/utils/pid_file.h [new file with mode: 0644]