From ea02ddc0be53f4e4ca62561c9d8f22f729caaba2 Mon Sep 17 00:00:00 2001 From: Izorkin Date: Tue, 22 Jan 2019 21:05:21 +0300 Subject: [PATCH] mysql: add restartTrigger for my.cnf --- nixos/modules/services/databases/mysql.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/nixos/modules/services/databases/mysql.nix b/nixos/modules/services/databases/mysql.nix index 1ba878957ed..8e2a7e47602 100644 --- a/nixos/modules/services/databases/mysql.nix +++ b/nixos/modules/services/databases/mysql.nix @@ -249,6 +249,7 @@ in after = [ "network.target" ]; wantedBy = [ "multi-user.target" ]; + restartTriggers = [ config.environment.etc."my.cnf".source ]; unitConfig.RequiresMountsFor = "${cfg.dataDir}";