mirror of
https://github.com/myronblair/novacpx
synced 2026-06-30 17:50:41 -05:00
fix: reload php-fpm async to prevent killing the account-creation request
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01LP9Q4kfCAYAjJnsbHBrViZ
This commit is contained in:
@@ -118,6 +118,8 @@ php_value[max_execution_time] = 30
|
||||
}
|
||||
|
||||
private static function reloadFPM(string $ver): void {
|
||||
shell_exec("sudo systemctl reload php{$ver}-fpm 2>/dev/null || true");
|
||||
// Run reload in background so it doesn't block/kill the current PHP-FPM worker.
|
||||
// The short sleep ensures the pool config is fully written before reload picks it up.
|
||||
exec("(sleep 1 && sudo systemctl reload php{$ver}-fpm) </dev/null >/dev/null 2>&1 &");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user