1 2 3 4 5 6 7 8 9 10
#!/bin/sh FMRI=php5-fpm:default case `svcstatus $FMRI` in online) pkill -USR1 -c `svcs -H -o ctid $FMRI` ;; esac exit 0