scst: when checking the status of the service, also check if all daemons are running

Signed-off-by: Erez Zilber <erezzi.list@gmail.com>



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6906 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
Vladislav Bolkhovitin
2016-06-30 04:10:38 +00:00
parent 4092e26bba
commit 55bb0206cd

View File

@@ -298,6 +298,15 @@ scst_status() {
return 3
fi
done
for d in $SCST_DAEMONS; do
daemon_name=`basename ${d}`
pgrep ${daemon_name} > /dev/null 2>&1
if [ $? -ne 0 ]; then
echo "${daemon_name}: not running"
return 3
fi
done
return 0
}