Bug 30684: (follow-up) Use log_warning_msg for the "not running" warning

Also, return 0 rather than return 1 in else clause of koha-zebra

Sponsored-by: Catalyst IT, New Zealand

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
This commit is contained in:
Alex Buckley 2022-08-17 13:50:01 +00:00 committed by Tomas Cohen Arazi
parent 3227b6136d
commit c88120688f
Signed by: tomascohen
GPG key ID: 0A272EA1B2F3C15F
6 changed files with 7 additions and 7 deletions

View file

@ -134,7 +134,7 @@ restart_indexer()
log_end_msg 1
fi
else
log_daemon_msg "Indexer not running for $name."
log_warning_msg "Indexer not running for $name."
start_indexer $name
fi
}

View file

@ -164,7 +164,7 @@ restart_plack()
if is_plack_running ${instancename}; then
stop_plack $instancename && start_plack $instancename
else
log_daemon_msg "Plack not running for ${instancename}."
log_warning_msg "Plack not running for ${instancename}."
start_plack $instancename
fi
}

View file

@ -167,7 +167,7 @@ restart_sip()
echo $noLF `start_sip ${name}`
else
if [ "$verbose" != "no" ]; then
log_daemon_msg "Warning: SIP server not running for ${name}."
log_warning_msg "Warning: SIP server not running for ${name}."
start_sip ${name}
else
start_sip ${name}

View file

@ -144,7 +144,7 @@ restart_worker()
log_end_msg 1
fi
else
log_daemon_msg "Worker not running for $name ($queue)."
log_warning_msg "Worker not running for $name ($queue)."
start_worker $name $queue
fi
}

View file

@ -167,7 +167,7 @@ restart_z3950()
log_end_msg 1
fi
else
log_daemon_msg "Z39.50/SRU not running for ${instancename}."
log_warning_msg "Z39.50/SRU not running for ${instancename}."
start_z3950 $instancename
fi
}

View file

@ -146,11 +146,11 @@ restart_zebra()
echo $noLF `start_zebra ${name}`
else
if [ "$verbose" != "no" ]; then
log_daemon_msg "Zebra not running for ${name}."
log_warning_msg "Zebra not running for ${name}."
start_zebra ${name}
else
start_zebra ${name}
return 1
return 0
fi
fi
}