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:
parent
3227b6136d
commit
c88120688f
6 changed files with 7 additions and 7 deletions
2
debian/scripts/koha-indexer
vendored
2
debian/scripts/koha-indexer
vendored
|
@ -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
|
||||
}
|
||||
|
|
2
debian/scripts/koha-plack
vendored
2
debian/scripts/koha-plack
vendored
|
@ -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
|
||||
}
|
||||
|
|
2
debian/scripts/koha-sip
vendored
2
debian/scripts/koha-sip
vendored
|
@ -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}
|
||||
|
|
2
debian/scripts/koha-worker
vendored
2
debian/scripts/koha-worker
vendored
|
@ -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
|
||||
}
|
||||
|
|
2
debian/scripts/koha-z3950-responder
vendored
2
debian/scripts/koha-z3950-responder
vendored
|
@ -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
|
||||
}
|
||||
|
|
4
debian/scripts/koha-zebra
vendored
4
debian/scripts/koha-zebra
vendored
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue