3
0
Fork 0
forked from mirrors/nixpkgs

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:
Vlastimil Holer 2022-02-18 14:36:51 +01:00
parent 997d3f8fcc
commit 09a6ce91d8
No known key found for this signature in database
GPG key ID: EB549BADEFD07C53

View file

@ -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;