mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-12 20:55:31 +03:00
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.
This commit is contained in:
parent
997d3f8fcc
commit
09a6ce91d8
1 changed files with 2 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue