diff --git a/init.d/rc.piler.in b/init.d/rc.piler.in index ff4f543a..d0ef02bd 100644 --- a/init.d/rc.piler.in +++ b/init.d/rc.piler.in @@ -44,9 +44,11 @@ case "$1" in status) if check_status; then - echo "${NAME} is running." + echo "${NAME} is running." + exit 0 else - echo "${NAME} is not running." + echo "${NAME} is not running." + exit 1 fi ;; diff --git a/init.d/rc.searchd.in b/init.d/rc.searchd.in index b08a7583..ca878b6c 100644 --- a/init.d/rc.searchd.in +++ b/init.d/rc.searchd.in @@ -54,9 +54,11 @@ case "$1" in status) if check_status; then - echo "${NAME} is running." + echo "${NAME} is running." + exit 0 else - echo "${NAME} is not running." + echo "${NAME} is not running." + exit 1 fi ;;