diff options
| author | Valery Kartel <valery.kartel@gmail.com> | 2017-02-24 11:25:06 +0200 |
|---|---|---|
| committer | Leonardo Arena <rnalrd@alpinelinux.org> | 2017-02-24 13:18:28 +0000 |
| commit | 82cd1263a39ff83b95e0f3d899ddf2e1a72181da (patch) | |
| tree | 5a8d1b1b4c000228c03612e26abca58913806dcc /testing/php7.1/php-fpm.initd.in | |
| parent | 44a644c5c0a30a141d6d05b8a17107f7a07814f8 (diff) | |
| download | aports-82cd1263a39ff83b95e0f3d899ddf2e1a72181da.tar.bz2 aports-82cd1263a39ff83b95e0f3d899ddf2e1a72181da.tar.xz | |
testing/php7.1: fixes in extension depends tracking
--
- rename submodule phar-phar -> phar-utils
- remade APKBUILD and sources from template-based to 7.1
Diffstat (limited to 'testing/php7.1/php-fpm.initd.in')
| -rw-r--r-- | testing/php7.1/php-fpm.initd.in | 87 |
1 files changed, 0 insertions, 87 deletions
diff --git a/testing/php7.1/php-fpm.initd.in b/testing/php7.1/php-fpm.initd.in deleted file mode 100644 index f892559e1b..0000000000 --- a/testing/php7.1/php-fpm.initd.in +++ /dev/null @@ -1,87 +0,0 @@ -#!/sbin/openrc-run - -# If you want to run separate master process per pool, then create a symlink -# to this runscript for each pool. In that mode, the php-fpm daemon is started -# as nobody by default. You can override the user (and group) by declaring -# variable "user" and optionally "group" in conf.d file, or in the $fpm_config -# file (the former has precedence). - -: ${name:="PHP FastCGI Process Manager"} - -command="/usr/sbin/php-fpm@_suffix@" -command_background="yes" -start_stop_daemon_args="--quiet" -pidfile="/run/$RC_SVCNAME/php-fpm.pid" -retry="SIGTERM/20" - -extra_commands="checkconfig" -extra_started_commands="reload reopen" -description_checkconfig="Run php-fpm config check" -description_reload="Gracefully reload workers and config" -description_reopen="Reopen log files" - -required_files="$fpm_config" - -depend() { - need net - before apache2 lighttpd nginx -} - -init_vars() { - # Defaults for single master process with multiple pools - if [ "$RC_SVCNAME" = "php-fpm@_suffix@" ]; then - : ${fpm_config:="/etc/php@_suffix@/php-fpm.conf"} - : ${user:="root"} - # Defaults for master process per pool - else - : ${fpm_config="/etc/php@_suffix@/php-fpm.d/${RC_SVCNAME#php-fpm@_suffix@.}.conf"} - : ${user:="$(conf_get user)"} - : ${user:="nobody"} - : ${group:="$(conf_get group)"} - fi - command_args="--nodaemonize --fpm-config $fpm_config" - start_stop_daemon_args="$start_stop_daemon_args - --user $user ${group:+"--group $group"}" -} - -start_pre() { - checkconfig || return 1 - - # If unix socket is used (instead of TCP/IP), then ensure that the - # directory exists and has correct privileges. - local listen="$(conf_get listen)" - if [ "${listen:0:1}" = "/" ]; then - checkpath -d -o $user:$group "${listen%/*}" - fi - - checkpath -d "${pidfile%/*}" -} - -reload() { - ebegin "Reloading $RC_SVCNAME" - start-stop-daemon --signal USR2 --pidfile "$pidfile" - eend $? -} - -reopen() { - ebegin "Reopening $RC_SVCNAME log files" - start-stop-daemon --signal USR1 --pidfile "$pidfile" - eend $? -} - -checkconfig() { - init_vars - ebegin "Checking $fpm_config" - - local out - out="$(su -s /bin/sh -c "$command --test --fpm-config $fpm_config" $user 2>&1)" || { - printf "%s\n" "$out" - eend 1 "failed, please correct errors above" - return 1 - } -} - -conf_get() { - local key="$1" - sed -nE "s/^${key}\s*=\s*\"?([^\";]+).*/\1/p" "$fpm_config" | head -n 1 -} |
