summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorxudyang1 <61672396+xudyang1@users.noreply.github.com>2022-07-05 13:48:13 -0400
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2022-09-23 07:07:39 +0000
commitcad54eb5ebdff24ecec53b56788cd151d8d64272 (patch)
tree27cf4d180e7979516a544c8e0113c4c02f387ad3
parent7645dbbe88354f09ee8d84dc393a899cd067bc71 (diff)
downloadmongo-cad54eb5ebdff24ecec53b56788cd151d8d64272.tar.gz
SERVER-67793 Change log_progress_msg to show output in Ubuntu
`log_progress_msg` does not print any message in Ubuntu-20.04.4 LTS in WSL. In file `/lib/lsb/init-functions.d/50-ubuntu-logging`, the function `log_progress_msg () { : }` does nothing. To show the output, `log_success_msg` and `log_failure_msg` could be good alternatives. Closes https://github.com/mongodb/mongo/pull/1474 Signed-off-by: Ryan Egesdahl <ryan.egesdahl@mongodb.com>
-rw-r--r--debian/init.d8
1 files changed, 4 insertions, 4 deletions
diff --git a/debian/init.d b/debian/init.d
index 7577a0a9dea..24ed757dab8 100644
--- a/debian/init.d
+++ b/debian/init.d
@@ -187,7 +187,7 @@ case "$1" in
log_daemon_msg "Starting $DESC" "$NAME"
# Check if it's running first
if running ; then
- log_progress_msg "apparently already running"
+ log_success_msg "apparently already running"
log_end_msg 0
exit 0
fi
@@ -217,7 +217,7 @@ case "$1" in
log_end_msg $errcode
else
# If it's not running don't do anything
- log_progress_msg "apparently not running"
+ log_success_msg "apparently not running"
log_end_msg 0
exit 0
fi
@@ -248,10 +248,10 @@ case "$1" in
log_daemon_msg "Checking status of $DESC" "$NAME"
if running ; then
- log_progress_msg "running"
+ log_successs_msg "running"
log_end_msg 0
else
- log_progress_msg "apparently not running"
+ log_failure_msg "apparently not running"
log_end_msg 1
exit 1
fi