From b635b2861f355844dfd5bac4d9400e0fbac9804b Mon Sep 17 00:00:00 2001 From: unknown Date: Mon, 30 Jul 2007 13:35:36 -0600 Subject: mysqld_safe.sh: Post-review fix, if 'logger' can't be found, and --syslog is requested, exit with error message instead of fall back to logging to error file. scripts/mysqld_safe.sh: Post-review fix, if 'logger' can't be found, and --syslog is requested, exit with error message instead of fall back to logging to error file. --- scripts/mysqld_safe.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'scripts/mysqld_safe.sh') diff --git a/scripts/mysqld_safe.sh b/scripts/mysqld_safe.sh index 2a592a6fbf5..e6f7ff7b3cb 100644 --- a/scripts/mysqld_safe.sh +++ b/scripts/mysqld_safe.sh @@ -302,8 +302,8 @@ then my_which logger > /dev/null 2>&1 if [ $? -ne 0 ] then - log_error "--syslog requested, but no 'logger' program found." - want_syslog=0 + log_error "--syslog requested, but no 'logger' program found. Please ensure that 'logger' is in your PATH, or do not specify the --syslog option to mysqld_safe." + exit 1 fi fi -- cgit v1.2.1