There was an error while loading. Please reload this page.
1 parent ce5fbeb commit e72f792Copy full SHA for e72f792
1 file changed
scripts/realtime.in
@@ -126,12 +126,15 @@ CheckConfig(){
126
CheckStatus(){
127
case $RTPREFIX in
128
uspace)
129
- if [ -z "$($PS -o stat= -o comm= -C rtapi_app | $GREP -v '^Z')" ]; then
130
- echo rtapi_app is not running
131
- return 1
132
- else
+ if rtapi_app ping; then
133
echo rtapi_app is running
134
return 0
+ elif [ -n "$($PS -o stat= -o comm= -C rtapi_app | $GREP -v '^Z')" ]; then
+ echo rtapi_app is running but not reachable
+ return 1
135
+ else
136
+ echo rtapi_app is not running
137
138
fi
139
;;
140
*)
0 commit comments