HomeDevCentral

Allow to restart php-fpm on FreeBSD servers after PHP update

Description

Allow to restart php-fpm on FreeBSD servers after PHP update

Summary:
On FreeBSD, some services can received an extra argument
to launch it several times. We provision a custom php-fpm
service to exactly do that: we want to be able to run several
pools with different PHP versions or configuration.

When the package is reinstalled, for example during a package update,
the custom service is overwritten.

The restart-php-fpm command checks the service is the Nasqueron one,
and if not, call Salt to redeploy it. Then, it restart the service.

Test Plan:
Tested on WindRiver with:

  • pkg update
  • pkg upgrade
  • restart-php-fpm

Reviewers: DorianWinty

Reviewed By: DorianWinty

Differential Revision: https://devcentral.nasqueron.org/D3337

Details

Provenance
derecksonAuthored on Jun 19 2024, 18:56
derecksonPushed on Jun 25 2024, 18:36
Reviewer
DorianWinty
Differential Revision
D3337: Allow to restart php-fpm on FreeBSD servers after PHP update
Parents
rOPS60874109aa2e: Ignore spelling only revision
Branches
Unknown
Tags
Unknown
Tasks
T1341: Document what to do if php-fpm lost pid files