From 8376ef56580626e9c0f796d5b85b53a0a1c7d5f5 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Sat, 14 Jul 2018 21:03:06 +0100 Subject: gentoo resync : 14.07.2018 --- app-eselect/eselect-php/files/php-fpm-launcher | 7 +++++++ app-eselect/eselect-php/files/php-fpm-launcher-r3 | 11 +++++++++++ app-eselect/eselect-php/files/php-fpm.conf | 1 + 3 files changed, 19 insertions(+) create mode 100644 app-eselect/eselect-php/files/php-fpm-launcher create mode 100644 app-eselect/eselect-php/files/php-fpm-launcher-r3 create mode 100644 app-eselect/eselect-php/files/php-fpm.conf (limited to 'app-eselect/eselect-php/files') diff --git a/app-eselect/eselect-php/files/php-fpm-launcher b/app-eselect/eselect-php/files/php-fpm-launcher new file mode 100644 index 000000000000..7a1c1c9f918b --- /dev/null +++ b/app-eselect/eselect-php/files/php-fpm-launcher @@ -0,0 +1,7 @@ +#!/bin/sh + +PHPSLOT="${1}" +[ -z "${PHPSLOT}" ] && PHPSLOT="$(eselect php show fpm)" +shift + +exec /usr/lib/${PHPSLOT}/bin/php-fpm "${@}" diff --git a/app-eselect/eselect-php/files/php-fpm-launcher-r3 b/app-eselect/eselect-php/files/php-fpm-launcher-r3 new file mode 100644 index 000000000000..a2b6eabc4da5 --- /dev/null +++ b/app-eselect/eselect-php/files/php-fpm-launcher-r3 @@ -0,0 +1,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 "/usr/@libdir@/${PHP_SLOT}/bin/php-fpm" "${@}" diff --git a/app-eselect/eselect-php/files/php-fpm.conf b/app-eselect/eselect-php/files/php-fpm.conf new file mode 100644 index 000000000000..801e74f1e620 --- /dev/null +++ b/app-eselect/eselect-php/files/php-fpm.conf @@ -0,0 +1 @@ +d /run/php-fpm 755 root root -- cgit v1.2.3