diff options
author | Gregor Kleen <gkleen@yggdrasil.li> | 2018-11-16 09:27:34 +0100 |
---|---|---|
committer | Gregor Kleen <gkleen@yggdrasil.li> | 2018-11-16 09:27:34 +0100 |
commit | b97e76b813d79622f1b743d84875cb93f467f593 (patch) | |
tree | f6ffd0d99dd39cac7327d10ffd6784366014072b /ymir.nix | |
parent | b4f0ed06ef2501b49271611557ac82f04051d7df (diff) | |
download | nixos-b97e76b813d79622f1b743d84875cb93f467f593.tar nixos-b97e76b813d79622f1b743d84875cb93f467f593.tar.gz nixos-b97e76b813d79622f1b743d84875cb93f467f593.tar.bz2 nixos-b97e76b813d79622f1b743d84875cb93f467f593.tar.xz nixos-b97e76b813d79622f1b743d84875cb93f467f593.zip |
better reloading
Diffstat (limited to 'ymir.nix')
-rw-r--r-- | ymir.nix | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -307,6 +307,8 @@ in rec { | |||
307 | chmod 0640 /etc/shadow | 307 | chmod 0640 /etc/shadow |
308 | ''; | 308 | ''; |
309 | 309 | ||
310 | systemd.services."prosody".serviceConfig.ExecReload = "${pkgs.prosody}/bin/prosodyctl reload"; | ||
311 | |||
310 | services.yggdrasilTinc = { | 312 | services.yggdrasilTinc = { |
311 | enable = true; | 313 | enable = true; |
312 | connect = false; | 314 | connect = false; |
@@ -843,8 +845,8 @@ in rec { | |||
843 | extraDomains = builtins.listToAttrs (builtins.map (name: { inherit name; value = "/srv/www/acme/${name}"; }) myDomains); | 845 | extraDomains = builtins.listToAttrs (builtins.map (name: { inherit name; value = "/srv/www/acme/${name}"; }) myDomains); |
844 | activationDelay = "6h"; | 846 | activationDelay = "6h"; |
845 | postRun = '' | 847 | postRun = '' |
846 | systemctl reload nginx.service | 848 | systemctl reload nginx.service dovecot2.service postfix.service prosody.service |
847 | ${pkgs.prosody}/bin/prosodyctl reload | 849 | systemctl restart vsftpd.service |
848 | ''; | 850 | ''; |
849 | }; | 851 | }; |
850 | }; | 852 | }; |