From 69dc69ab7c78176c28f648524d5583acb3ebe17b Mon Sep 17 00:00:00 2001 From: "guanghui.wang" Date: Fri, 22 Jul 2016 11:03:07 +0800 Subject: [PATCH] tgtd status error --- scripts/initd.sample | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/initd.sample b/scripts/initd.sample index 9ca86ce5..2a8ca473 100755 --- a/scripts/initd.sample +++ b/scripts/initd.sample @@ -116,7 +116,7 @@ status() { # Don't name this script "tgtd"... TGTD_PROC=$(ps -C tgtd | grep -c tgtd) - if [ "$TGTD_PROC" -eq 2 ] ; then + if [ "$TGTD_PROC" -gt 2 ] ; then echo "tgtd is running. Run 'tgt-admin -s' to see detailed target info." else echo "tgtd is NOT running."