nixos/nginx: enable service/config reload

This commit is contained in:
Jaka Hudoklin 2015-04-25 15:17:06 +02:00
parent 4e51a466bd
commit 494d1820e3

View File

@ -102,6 +102,7 @@ in
'';
serviceConfig = {
ExecStart = "${nginx}/bin/nginx -c ${configFile} -p ${cfg.stateDir}";
ExecReload = "${pkgs.coreutils}/bin/kill -HUP $MAINPID";
Restart = "on-failure";
RestartSec = "10s";
StartLimitInterval = "1min";