aboutsummaryrefslogtreecommitdiff
path: root/functions
diff options
context:
space:
mode:
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