summaryrefslogtreecommitdiff
blob: 940cec9aa82412daa60a8a52a4ad84a61657f3c5 (plain)
1
2
3
4
5
6
7
8
9
10
11
#!/bin/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 "@LIBDIR@/${PHP_SLOT}/bin/php-fpm" "${@}"