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 | |
parent | 997d3f8fcc3dcfaa92082e21a064aa596b55ee5c (diff) |
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')
-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 9fca21002733a..c40a0b5abc40e 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; |