#!/bin/sh CONFFILE=/etc/php/5.6/fpm/php-fpm.conf [ -r /etc/default/php5.6-fpm ] && . /etc/default/php5.6-fpm CONF_PIDFILE=$(sed -n 's/^[[:space:]]*pid[[:space:]]*=[[:space:]]*//p' $CONFFILE) PIDFILE=${CONF_PIDFILE:-/run/php/php5.6-fpm.pid} [ -r "$PIDFILE" ] && kill -USR1 $(cat "$PIDFILE") > /dev/null exit 0