]> git.proxmox.com Git - ceph.git/blame - 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
CommitLineData
7c673cae
FG
1#!/usr/bin/env bash
2
3set -xe
4
5pid="$1"
6
7if [[ -z "$pid" ]]; then
8 echo "usage: $0 pid"
9 exit 1
10fi
11
12# delete any existing temporary iscsi.conf files
11fdf7f2 13rm -f /tmp/iscsi.conf*
7c673cae
FG
14
15kill -USR1 "$pid"
16
11fdf7f2 17if [ ! -f $(ls /tmp/iscsi.conf.*) ]; then
7c673cae
FG
18 echo "iscsi_tgt did not generate config file"
19 exit 1
20fi
21
11fdf7f2 22mv $(ls /tmp/iscsi.conf.*) /tmp/iscsi.conf