mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-01 23:22:37 +00:00
* Improve the mysql shutdown.
svn path=/nixos/branches/upstart-0.6/; revision=18255
This commit is contained in:
parent
7aecd0ca53
commit
d9d072a89b
@ -89,14 +89,12 @@ in
|
||||
chown -R ${cfg.user} ${cfg.pidDir}
|
||||
'';
|
||||
|
||||
exec = "${mysql}/bin/mysqld ${mysqldOptions}";
|
||||
exec = "${mysql}/libexec/mysqld ${mysqldOptions}";
|
||||
|
||||
postStop =
|
||||
''
|
||||
pid=$(cat ${pidFile})
|
||||
kill "$pid"
|
||||
${mysql}/bin/mysql_waitpid "$pid" 1000
|
||||
'';
|
||||
# !!! Need a postStart script to wait until mysqld is ready to
|
||||
# accept connections.
|
||||
|
||||
extraConfig = "kill timeout 60";
|
||||
};
|
||||
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user