diff options
author | Allan McRae <allan@archlinux.org> | 2009-03-09 19:53:39 +1000 |
---|---|---|
committer | Aaron Griffin <aaronmgriffin@gmail.com> | 2009-03-09 12:14:18 -0700 |
commit | f3a60b900d22349445de1481d6171297ac022ff0 (patch) | |
tree | a0433b73801f25760fdca5d79f73336ca3618494 /functions | |
parent | a2db62cbc2f326c30bfd39be31fe71472b8e47e1 (diff) |
Fix status display functions
The status display functions were returning the opposite of what
they should have been. Also made cosmetic changes to the output.
Signed-off-by: Allan McRae <allan@archlinux.org>
Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
Diffstat (limited to 'functions')
-rw-r--r-- | functions | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -170,16 +170,17 @@ stop_daemon() { # Status functions status_started() { deltext - echo -ne " $C_OTHER[${C_STRT}STARTED$C_OTHER]$C_CLEAR " + echo -ne "$C_OTHER[${C_STRT}STARTED$C_OTHER]$C_CLEAR " } status_stopped() { deltext - echo -ne " $C_OTHER[${C_STRT}STOPPED$C_OTHER]$C_CLEAR " + echo -ne "$C_OTHER[${C_STRT}STOPPED$C_OTHER]$C_CLEAR " } ck_status() { - if ck_daemon $1; then + ck_daemon $1 + if [ $? -eq 1 ]; then status_started else status_stopped |