From 2887bfbe9e6ab954a9603a87d151915c5a9dfa96 Mon Sep 17 00:00:00 2001 From: Michael Widenius Date: Mon, 2 Apr 2012 12:09:22 +0300 Subject: [PATCH] Fixed lp:886484 "nowatch option for mysqld (allow systemd)" Added a --nowatch (with aliases --no-watch and --no-auto-restart) option to mysqld_safe that causes it to exit after spawning mysqld. We don't need mysqld_safe to restart mysqld after a crash, because systemd can do that just fine. Based on code from Maarten Vanraes scripts/mysqld_safe.sh: Added option --nowatch (with aliases --no-watch and --no-auto-restart) --- scripts/mysqld_safe.sh | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/scripts/mysqld_safe.sh b/scripts/mysqld_safe.sh index 20e5e115687..aaf1936afe1 100644 --- a/scripts/mysqld_safe.sh +++ b/scripts/mysqld_safe.sh @@ -15,6 +15,7 @@ KILL_MYSQLD=1; MYSQLD= niceness=0 +nowatch=0 mysqld_ld_preload= mysqld_ld_library_path= @@ -44,16 +45,18 @@ usage () { cat <