1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-24 06:31:02 +00:00

nginx service: restart instead of stop to reduce downtime

cc #23127
This commit is contained in:
Franz Pletz 2017-02-25 15:55:56 +01:00
parent 0ed156a216
commit 26a2822cf0
No known key found for this signature in database
GPG key ID: 846FDED7792617B4

View file

@ -385,6 +385,7 @@ in
description = "Nginx Web Server";
after = [ "network.target" ];
wantedBy = [ "multi-user.target" ];
stopIfChanged = false;
preStart =
''
mkdir -p ${cfg.stateDir}/logs