mirror of
https://github.com/SCST-project/scst.git
synced 2026-05-14 09:11:27 +00:00
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:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user