diff options
author | Vlastimil Holer <vlastimil.holer@gmail.com> | 2022-02-18 14:36:51 +0100 |
---|---|---|
committer | Vlastimil Holer <vlastimil.holer@gmail.com> | 2022-02-18 18:35:55 +0100 |
commit | 09a6ce91d8fb488532dbef21fc8da7efba0981d0 (patch) | |
tree | 38f374f96b768294451820e8bcef8cfca4ca5eca /nixos/modules/services/backup | |
parent | 997d3f8fcc3dcfaa92082e21a064aa596b55ee5c (diff) | |
download | nixpkgs-09a6ce91d8fb488532dbef21fc8da7efba0981d0.tar nixpkgs-09a6ce91d8fb488532dbef21fc8da7efba0981d0.tar.gz nixpkgs-09a6ce91d8fb488532dbef21fc8da7efba0981d0.tar.bz2 nixpkgs-09a6ce91d8fb488532dbef21fc8da7efba0981d0.tar.lz nixpkgs-09a6ce91d8fb488532dbef21fc8da7efba0981d0.tar.xz nixpkgs-09a6ce91d8fb488532dbef21fc8da7efba0981d0.tar.zst nixpkgs-09a6ce91d8fb488532dbef21fc8da7efba0981d0.zip |
nixos/mysqlBackup: set service Type
fixes #158802 Sets the mysql backup systemd service type to "oneshot" to ensure the service is marked as started after the backup script fully proceeds. This allows to reliably depend on completing of this service by other services.
Diffstat (limited to 'nixos/modules/services/backup')
-rw-r--r-- | nixos/modules/services/backup/mysql-backup.nix | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/nixos/modules/services/backup/mysql-backup.nix b/nixos/modules/services/backup/mysql-backup.nix index 9fca2100273..c40a0b5abc4 100644 --- a/nixos/modules/services/backup/mysql-backup.nix +++ b/nixos/modules/services/backup/mysql-backup.nix @@ -113,9 +113,10 @@ in }; }; services.mysql-backup = { - description = "Mysql backup service"; + description = "MySQL backup service"; enable = true; serviceConfig = { + Type = "oneshot"; User = cfg.user; }; script = backupScript; |