Skip to content
Snippets Groups Projects
Commit 24421636 authored by Tomáš Plesník's avatar Tomáš Plesník
Browse files

revize kodu

parent 7af150db
No related branches found
No related tags found
No related merge requests found
......@@ -63,8 +63,7 @@ usage() {
}
check_status() {
/bin/ps axo pid,comm | grep -q "warden-serv*"; RET_VAL=`echo $?`
if [ $RET_VAL -eq 0 ]; then
if /bin/ps axo pid,comm | grep -q "warden-serv*"; then
STATUS=1 # true - warden is running
else
STATUS=0 # false - warden is not running
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment