forked from mirrors/nixpkgs
nixos/mysql: make ExecStartPost script fail on error
This commit is contained in:
parent
b7907dc1ae
commit
46ea3ebc19
|
@ -319,7 +319,9 @@ in
|
||||||
ExecStart = "${mysql}/bin/mysqld --defaults-file=/etc/my.cnf ${mysqldOptions} $_WSREP_NEW_CLUSTER $_WSREP_START_POSITION";
|
ExecStart = "${mysql}/bin/mysqld --defaults-file=/etc/my.cnf ${mysqldOptions} $_WSREP_NEW_CLUSTER $_WSREP_START_POSITION";
|
||||||
ExecStartPost =
|
ExecStartPost =
|
||||||
let
|
let
|
||||||
setupScript = pkgs.writeShellScript "mysql-setup" ''
|
setupScript = pkgs.writeScript "mysql-setup" ''
|
||||||
|
#!${pkgs.runtimeShell} -e
|
||||||
|
|
||||||
${optionalString (!hasNotify) ''
|
${optionalString (!hasNotify) ''
|
||||||
# Wait until the MySQL server is available for use
|
# Wait until the MySQL server is available for use
|
||||||
count=0
|
count=0
|
||||||
|
|
Loading…
Reference in a new issue