From a29c30695855a165e131696d83d68a60573f9c3b Mon Sep 17 00:00:00 2001 From: Domen Kozar Date: Sat, 18 May 2013 13:28:21 +0200 Subject: [PATCH] bacula: add ExecReload --- modules/services/backup/bacula.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/modules/services/backup/bacula.nix b/modules/services/backup/bacula.nix index daece0d11584..525df3400484 100644 --- a/modules/services/backup/bacula.nix +++ b/modules/services/backup/bacula.nix @@ -355,6 +355,7 @@ in { wantedBy = [ "multi-user.target" ]; path = [ pkgs.bacula ]; serviceConfig.ExecStart = "${pkgs.bacula}/sbin/bacula-fd -f -u root -g bacula -c ${fd_conf}"; + serviceConfig.ExecReload = "${pkgs.coreutils}/bin/kill -HUP $MAINPID"; }; systemd.services.bacula-sd = mkIf sd_cfg.enable { @@ -363,6 +364,7 @@ in { wantedBy = [ "multi-user.target" ]; path = [ pkgs.bacula ]; serviceConfig.ExecStart = "${pkgs.bacula}/sbin/bacula-sd -f -u bacula -g bacula -c ${sd_conf}"; + serviceConfig.ExecReload = "${pkgs.coreutils}/bin/kill -HUP $MAINPID"; }; services.postgresql.enable = dir_cfg.enable == true; @@ -373,6 +375,7 @@ in { wantedBy = [ "multi-user.target" ]; path = [ pkgs.bacula ]; serviceConfig.ExecStart = "${pkgs.bacula}/sbin/bacula-dir -f -u bacula -g bacula -c ${dir_conf}"; + serviceConfig.ExecReload = "${pkgs.coreutils}/bin/kill -HUP $MAINPID"; preStart = '' if ! test -e "${libDir}/db-created"; then ${pkgs.postgresql}/bin/createuser --no-superuser --no-createdb --no-createrole bacula