* Improve the mysql shutdown.

svn path=/nixos/branches/upstart-0.6/; revision=18255
This commit is contained in:
Eelco Dolstra 2009-11-07 12:43:32 +00:00
parent 7aecd0ca53
commit d9d072a89b

View File

@ -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";
};
};