Merge pull request #77158 from aanderse/mysql
nixos/mysql: restart systemd service on abort
This commit is contained in:
commit
5a523d70f6
1 changed files with 2 additions and 0 deletions
|
@ -320,6 +320,8 @@ in
|
|||
Type = if hasNotify then "notify" else "simple";
|
||||
RuntimeDirectory = "mysqld";
|
||||
RuntimeDirectoryMode = "0755";
|
||||
Restart = "on-abort";
|
||||
RestartSec = "5s";
|
||||
# The last two environment variables are used for starting Galera clusters
|
||||
ExecStart = "${mysql}/bin/mysqld --defaults-file=/etc/my.cnf ${mysqldOptions} $_WSREP_NEW_CLUSTER $_WSREP_START_POSITION";
|
||||
ExecStartPost =
|
||||
|
|
Loading…
Reference in a new issue