#!/bin/sh if [ -d /run/systemd/system ]; then if systemctl is-active --quiet php8.4-fpm.service; then exec systemctl --kill-who=main --signal=USR1 kill php8.4-fpm.service fi else if service php8.4-fpm status >/dev/null 2>&1; then exec service php8.4-fpm reopen-logs fi fi exit 0