From 43699cd0981c28cf42a52d4b69f04583a285c315 Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Fri, 16 Nov 2018 09:49:59 +0100 Subject: more reloading --- ymir.nix | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'ymir.nix') diff --git a/ymir.nix b/ymir.nix index 0bb08c7a..9b54d440 100644 --- a/ymir.nix +++ b/ymir.nix @@ -845,8 +845,7 @@ in rec { extraDomains = builtins.listToAttrs (builtins.map (name: { inherit name; value = "/srv/www/acme/${name}"; }) myDomains); activationDelay = "6h"; postRun = '' - systemctl reload nginx.service dovecot2.service postfix.service prosody.service - systemctl restart vsftpd.service + systemctl reload nginx.service dovecot2.service postfix.service prosody.service vsftpd.service infinoted.service ''; }; }; @@ -995,6 +994,11 @@ in rec { ''; }; + systemd.services."infinoted".serviceConfig = { + Type = "notify"; + ExecReload = "${pkgs.coreutils}/bin/kill -HUP $MAINPID"; + }; + users.extraUsers."infinoted" = { isSystemUser = true; }; @@ -1050,6 +1054,8 @@ in rec { ''; }; + systemd.services."vsftpd".serviceConfig.ExecReload = "${pkgs.coreutils}/bin/kill -HUP $MAINPID"; + security.pam.services."vsftpd".text = '' auth required ${pkgs.pam_pwdfile}/lib/security/pam_pwdfile.so pwdfile=/srv/ftp.htpasswd account required pam_permit.so -- cgit v1.2.3