From 984473e13867dca67a0ed297126cdd558f1c8764 Mon Sep 17 00:00:00 2001 From: Caspar Krieger Date: Thu, 17 Dec 2015 23:32:58 +1100 Subject: [PATCH] Set pidfile even when not running via mysqld_safe For example, Ubuntu 14.04 /etc/init.d/mysql does not use mysqld_safe and parses the pidfile out of `mysqld --print-defaults` instead. --- templates/my.cnf.j2 | 1 + 1 file changed, 1 insertion(+) diff --git a/templates/my.cnf.j2 b/templates/my.cnf.j2 index ed9c766..6005658 100644 --- a/templates/my.cnf.j2 +++ b/templates/my.cnf.j2 @@ -8,6 +8,7 @@ port = {{ mysql_port }} bind-address = {{ mysql_bind_address }} datadir = {{ mysql_datadir }} socket = {{ mysql_socket }} +pid-file = {{ mysql_pid_file }} # Logging configuration. {% if mysql_log_error == 'syslog' or mysql_log == 'syslog' %}