Add healthcheck script for iSCSId

This patch adds script for docker health check of iscsid service.
The script checks the service using socat.

Change-Id: I8336d5778354fc21a3d9fb394fe8776febcc9173
This commit is contained in:
Martin Mágr 2018-02-12 14:02:48 +01:00
parent 9f40ac8745
commit 225819e37c
1 changed files with 4 additions and 0 deletions

4
healthcheck/iscsid Normal file
View File

@ -0,0 +1,4 @@
#!/bin/bash
socat - ABSTRACT-CONNECT:ISCSIADM_ABSTRACT_NAMESPACE </dev/null
exit $?