php-fpm: add reload support

Upstream recommends sending USR2 for a graceful reload.
This commit is contained in:
Peter Hoeg 2016-10-06 10:22:24 +08:00
parent 66d622fbd0
commit 47a8f1ea85

View File

@ -128,8 +128,8 @@ in {
serviceConfig = {
Type = "notify";
ExecStart = "${cfg.phpPackage}/bin/php-fpm -y ${cfgFile} -c ${phpIni}";
ExecReload = "${pkgs.coreutils}/bin/kill -USR2 $MAINPID";
};
};
};
}