]> git.proxmox.com Git - ceph.git/blob - ceph/src/spdk/test/iscsi_tgt/fio/running_config.sh
update sources to ceph Nautilus 14.2.1
[ceph.git] / ceph / src / spdk / test / iscsi_tgt / fio / running_config.sh
1 #!/usr/bin/env bash
2
3 set -xe
4
5 pid="$1"
6
7 if [[ -z "$pid" ]]; then
8 echo "usage: $0 pid"
9 exit 1
10 fi
11
12 # delete any existing temporary iscsi.conf files
13 rm -f /tmp/iscsi.conf*
14
15 kill -USR1 "$pid"
16
17 if [ ! -f $(ls /tmp/iscsi.conf.*) ]; then
18 echo "iscsi_tgt did not generate config file"
19 exit 1
20 fi
21
22 mv $(ls /tmp/iscsi.conf.*) /tmp/iscsi.conf