diff options
author | Rickard Nilsson <rickynils@gmail.com> | 2014-03-19 08:38:31 +0100 |
---|---|---|
committer | Rickard Nilsson <rickynils@gmail.com> | 2014-03-19 08:41:07 +0100 |
commit | 043bf5a94115b605745de93ec316566f852cb6b3 (patch) | |
tree | 81c339a9ded5fa1c7a52dd3b03e716f81437df79 /nixos/modules/services/databases | |
parent | 7d8fea797a4a844c6715a4f8a0a70f86df96bf5a (diff) | |
download | nixlib-043bf5a94115b605745de93ec316566f852cb6b3.tar nixlib-043bf5a94115b605745de93ec316566f852cb6b3.tar.gz nixlib-043bf5a94115b605745de93ec316566f852cb6b3.tar.bz2 nixlib-043bf5a94115b605745de93ec316566f852cb6b3.tar.lz nixlib-043bf5a94115b605745de93ec316566f852cb6b3.tar.xz nixlib-043bf5a94115b605745de93ec316566f852cb6b3.tar.zst nixlib-043bf5a94115b605745de93ec316566f852cb6b3.zip |
mysql service: Shutdown with normal systemd SIGTERM instead of mysqladmin
According to the MySQL manual, this is a perfectly legal way of shutting down the server. The shutdown logs also looks fine: systemd[1]: Stopping MySQL Server... mysqld[5114]: 140319 8:36:12 [Note] /nix/store/sc26mz82k97mbpx3d1abzn3rrbd155ws-mariadb-10.0.8/bin/mysqld: Normal shutdown mysqld[5114]: 140319 8:36:12 [Note] Event Scheduler: Purging the queue. 0 events mysqld[5114]: 140319 8:36:12 [Note] InnoDB: FTS optimize thread exiting. mysqld[5114]: 140319 8:36:12 [Note] InnoDB: Starting shutdown... mysqld[5114]: 140319 8:36:14 [Note] InnoDB: Shutdown completed; log sequence number 1619078 mysqld[5114]: 140319 8:36:14 [Note] /nix/store/sc26mz82k97mbpx3d1abzn3rrbd155ws-mariadb-10.0.8/bin/mysqld: Shutdown complete systemd[1]: Stopped MySQL Server.
Diffstat (limited to 'nixos/modules/services/databases')
-rw-r--r-- | nixos/modules/services/databases/mysql.nix | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/nixos/modules/services/databases/mysql.nix b/nixos/modules/services/databases/mysql.nix index 7e42438fe6d5..44fb0062f928 100644 --- a/nixos/modules/services/databases/mysql.nix +++ b/nixos/modules/services/databases/mysql.nix @@ -250,9 +250,6 @@ in rm /tmp/mysql_init fi ''; # */ - - serviceConfig.ExecStop = - "${mysql}/bin/mysqladmin ${optionalString (cfg.rootPassword != null) "--user=root --password=\"$(cat ${cfg.rootPassword})\""} shutdown"; }; }; |