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
Loading
...@@ -63,8 +63,7 @@ usage() { ...@@ -63,8 +63,7 @@ usage() {
} }
check_status() { check_status() {
/bin/ps axo pid,comm | grep -q "warden-serv*"; RET_VAL=`echo $?` if /bin/ps axo pid,comm | grep -q "warden-serv*"; then
if [ $RET_VAL -eq 0 ]; then
STATUS=1 # true - warden is running STATUS=1 # true - warden is running
else else
STATUS=0 # false - warden is not running 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