summary refs log tree commit diff
path: root/nixos/modules/services/databases/mysql.nix
diff options
context:
space:
mode:
authorJoachim Fasting <joachifm@fastmail.fm>2016-10-02 22:17:20 +0200
committerJoachim Fasting <joachifm@fastmail.fm>2016-10-03 23:08:26 +0200
commit88265c8238ddee421eea6251d4579d173b0a9332 (patch)
treedf6a6d9d92cf31714d308fa84a69b1d5617fabdf /nixos/modules/services/databases/mysql.nix
parentf12fcfebe252dd603d04edadf929a3f8de73d2e6 (diff)
downloadnixpkgs-88265c8238ddee421eea6251d4579d173b0a9332.tar
nixpkgs-88265c8238ddee421eea6251d4579d173b0a9332.tar.gz
nixpkgs-88265c8238ddee421eea6251d4579d173b0a9332.tar.bz2
nixpkgs-88265c8238ddee421eea6251d4579d173b0a9332.tar.lz
nixpkgs-88265c8238ddee421eea6251d4579d173b0a9332.tar.xz
nixpkgs-88265c8238ddee421eea6251d4579d173b0a9332.tar.zst
nixpkgs-88265c8238ddee421eea6251d4579d173b0a9332.zip
mysql service: order after network.target
Diffstat (limited to 'nixos/modules/services/databases/mysql.nix')
-rw-r--r--nixos/modules/services/databases/mysql.nix1
1 files changed, 1 insertions, 0 deletions
diff --git a/nixos/modules/services/databases/mysql.nix b/nixos/modules/services/databases/mysql.nix
index 0b2f99f8fff..6cc2c77c63b 100644
--- a/nixos/modules/services/databases/mysql.nix
+++ b/nixos/modules/services/databases/mysql.nix
@@ -167,6 +167,7 @@ in
     systemd.services.mysql =
       { description = "MySQL Server";
 
+        after = [ "network.target" ];
         wantedBy = [ "multi-user.target" ];
 
         unitConfig.RequiresMountsFor = "${cfg.dataDir}";