git.iko.soy/typeable/nixpkgs
on master help sign in
php-fpm: add reload support

Upstream recommends sending USR2 for a graceful reload.

commit47a8f1ea85ec461ddb0d3d2e9eddd51f34bf070a authorPeter Hoeg <peter@speartail.com> dateThu 6 Oct 2016, 10:22 (10 years ago) parent66d622f
1 file changed+1−1
nixos/modules/services/web-servers/phpfpm/default.nix+1−1
nixos/modules/services/web-servers/phpfpm/default.nix+1−1
@@ -128,8 +128,8 @@ in {
128128 serviceConfig = {
129129 Type = "notify";
130130 ExecStart = "${cfg.phpPackage}/bin/php-fpm -y ${cfgFile} -c ${phpIni}";
131+ ExecReload = "${pkgs.coreutils}/bin/kill -USR2 $MAINPID";
131132 };
132133 };
133−
134134 };
135135}