aboutsummaryrefslogtreecommitdiff
path: root/functions
diff options
context:
space:
mode:
authorAllan McRae <allan@archlinux.org>2009-03-09 19:53:39 +1000
committerAaron Griffin <aaronmgriffin@gmail.com>2009-03-09 12:14:18 -0700
commitf3a60b900d22349445de1481d6171297ac022ff0 (patch)
treea0433b73801f25760fdca5d79f73336ca3618494 /functions
parenta2db62cbc2f326c30bfd39be31fe71472b8e47e1 (diff)
downloadinitscripts-f3a60b900d22349445de1481d6171297ac022ff0.tar.xz
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--functions7
1 files changed, 4 insertions, 3 deletions
diff --git a/functions b/functions
index 9eb6c80..34285dd 100644
--- a/functions
+++ b/functions
@@ -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