mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-10 09:32:06 +00:00
init.d: add message when process unexpectedly terminated [#METR-14003]
This commit is contained in:
parent
970d316b00
commit
2544b901a3
@ -207,7 +207,15 @@ case "$1" in
|
||||
disable_cron && stop
|
||||
;;
|
||||
status)
|
||||
any_runs && echo "$PROGRAM service is running($(running_processes) of $NUMBER_OF_PROCESSES)" || echo "$PROGRAM service is stopped"
|
||||
if [[ $(running_processes) -eq $NUMBER_OF_PROCESSES ]]; then
|
||||
echo "$PROGRAM service is running"
|
||||
else
|
||||
if [ ! -e $LOCKFILE ]; then
|
||||
echo "$PROGRAM service is stopped";
|
||||
else
|
||||
echo "$(($NUMBER_OF_PROCESSES - $(running_processes))) processes unexpectedly terminated"
|
||||
fi
|
||||
fi
|
||||
;;
|
||||
restart)
|
||||
restart && enable_cron
|
||||
|
Loading…
Reference in New Issue
Block a user