We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 57b02a4 commit dc8cd1dCopy full SHA for dc8cd1d
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