diff options
| author | h7x4 <h7x4@nani.wtf> | 2024-09-21 17:07:20 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-09-21 17:07:20 +0200 |
| commit | f88d5e23d94fd94a7a29d77fe3d02badf828417e (patch) | |
| tree | a2303e525999c3f2fa19c2ad636d8e57b31db3d5 | |
| parent | nixos/ups: add system-ups.slice (#338556) (diff) | |
| parent | nixos/bacula: add system-bacula.slice (diff) | |
| download | nixpkgs-f88d5e23d94fd94a7a29d77fe3d02badf828417e.tar.gz | |
nixos/bacula: add system-bacula.slice (#338739)
| -rw-r--r-- | nixos/modules/services/backup/bacula.nix | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/nixos/modules/services/backup/bacula.nix b/nixos/modules/services/backup/bacula.nix index 94f6e6ba4fd5..f7a86915d5bc 100644 --- a/nixos/modules/services/backup/bacula.nix +++ b/nixos/modules/services/backup/bacula.nix @@ -656,6 +656,11 @@ in { }; config = mkIf (fd_cfg.enable || sd_cfg.enable || dir_cfg.enable) { + systemd.slices.system-bacula = { + description = "Bacula Slice"; + documentation = [ "man:bacula(8)" "https://www.bacula.org/" ]; + }; + systemd.services.bacula-fd = mkIf fd_cfg.enable { after = [ "network.target" ]; description = "Bacula File Daemon"; @@ -666,6 +671,7 @@ in { ExecReload = "${pkgs.coreutils}/bin/kill -HUP $MAINPID"; LogsDirectory = "bacula"; StateDirectory = "bacula"; + Slice = "system-bacula.slice"; }; }; @@ -679,6 +685,7 @@ in { ExecReload = "${pkgs.coreutils}/bin/kill -HUP $MAINPID"; LogsDirectory = "bacula"; StateDirectory = "bacula"; + Slice = "system-bacula.slice"; }; }; @@ -694,6 +701,7 @@ in { ExecReload = "${pkgs.coreutils}/bin/kill -HUP $MAINPID"; LogsDirectory = "bacula"; StateDirectory = "bacula"; + Slice = "system-bacula.slice"; }; preStart = '' if ! test -e "${libDir}/db-created"; then |
