1 2 3 4 5 6 7
#!/bin/sh PHPSLOT="${1}" [ -z "${PHPSLOT}" ] && PHPSLOT="$(eselect php show fpm)" shift exec /usr/lib/${PHPSLOT}/bin/php-fpm "${@}"