Skip to content

Instantly share code, notes, and snippets.

@szepeviktor
Last active July 18, 2026 04:08
Show Gist options
  • Select an option

  • Save szepeviktor/ae9a1e2cf81538d0ed6a11e52f9449ce to your computer and use it in GitHub Desktop.

Select an option

Save szepeviktor/ae9a1e2cf81538d0ed6a11e52f9449ce to your computer and use it in GitHub Desktop.
PHP-FPM: Suppress the normal "Reopening PHP FastCGI Process Manager logs" message
# /etc/lsb-base-logging.sh
log_daemon_msg_pre()
{
# Suppress the normal "Reopening PHP FastCGI Process Manager logs" message
case "${1:-}:${2:-}" in
Reopening*logs:php-fpm*)
/usr/bin/logger -p daemon.notice -t "$2" -- "$1"
exec >/dev/null
;;
esac
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment