summaryrefslogtreecommitdiff
blob: db07a1352d8c12adfe7f70e7543e99a4475f8357 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/sh

set -o errexit

. /lib/gentoo/functions.sh

# If there are no arguments, then "shift" will fail (bug 626496).
if [ $# -eq 0 ]; then
    PHP_SLOT=$(eselect php show fpm)
else
    PHP_SLOT=$1
    shift
fi

exec "/usr/$(get_libdir)/${PHP_SLOT}/bin/php-fpm" "${@}"