These changes were modified by the shfmt tool that supports Google's Style guide. Change-Id: I27dd8ba91afc0043b3ce5f0eb6121a3c11789fab Signed-off-by: chenlo2x <longx.o.chen@intel.com> Reviewed-on: https://review.gerrithub.io/408147 Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com> Reviewed-by: Jim Harris <james.r.harris@intel.com> Chandler-Test-Pool: SPDK Automated Test System <sys_sgsw@intel.com> Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
23 lines
335 B
Bash
Executable File
23 lines
335 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
set -xe
|
|
|
|
pid="$1"
|
|
|
|
if [[ -z "$pid" ]]; then
|
|
echo "usage: $0 pid"
|
|
exit 1
|
|
fi
|
|
|
|
# delete any existing temporary iscsi.conf files
|
|
rm -f /tmp/iscsi.conf*
|
|
|
|
kill -USR1 "$pid"
|
|
|
|
if [ ! -f $(ls /tmp/iscsi.conf.*) ]; then
|
|
echo "iscsi_tgt did not generate config file"
|
|
exit 1
|
|
fi
|
|
|
|
mv $(ls /tmp/iscsi.conf.*) /tmp/iscsi.conf
|