mirror of
https://github.com/geerlingguy/ansible-role-php.git
synced 2025-02-17 01:21:29 +01:00
Fixes #65: Make FPM init script more PHP-7-friendly.
This commit is contained in:
parent
817fa70c02
commit
e22b35d20e
@ -1,22 +1,22 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
### BEGIN INIT INFO
|
### BEGIN INIT INFO
|
||||||
# Provides: php-fpm php5-fpm
|
# Provides: php-fpm {{ php_fpm_daemon }}
|
||||||
# Required-Start: $remote_fs $network
|
# Required-Start: $remote_fs $network
|
||||||
# Required-Stop: $remote_fs $network
|
# Required-Stop: $remote_fs $network
|
||||||
# Default-Start: 2 3 4 5
|
# Default-Start: 2 3 4 5
|
||||||
# Default-Stop: 0 1 6
|
# Default-Stop: 0 1 6
|
||||||
# Short-Description: starts php5-fpm
|
# Short-Description: starts {{ php_fpm_daemon }}
|
||||||
# Description: Starts The PHP FastCGI Process Manager Daemon
|
# Description: Starts The PHP FastCGI Process Manager Daemon
|
||||||
### END INIT INFO
|
### END INIT INFO
|
||||||
|
|
||||||
# Author: Ondrej Sury <ondrej@debian.org>
|
# Author: Ondrej Sury <ondrej@debian.org>
|
||||||
|
|
||||||
PATH=/sbin:/usr/sbin:/bin:/usr/bin
|
PATH=/sbin:/usr/sbin:/bin:/usr/bin
|
||||||
DESC="PHP5 FastCGI Process Manager"
|
DESC="PHP FastCGI Process Manager"
|
||||||
NAME=php5-fpm
|
NAME={{ php_fpm_daemon }}
|
||||||
DAEMON=/usr/sbin/$NAME
|
DAEMON=/usr/sbin/$NAME
|
||||||
DAEMON_ARGS="--daemonize --fpm-config {{ php_conf_path }}/fpm/php-fpm.conf"
|
DAEMON_ARGS="--daemonize --fpm-config {{ php_conf_path }}/fpm/php-fpm.conf"
|
||||||
PIDFILE=/var/run/php5-fpm.pid
|
PIDFILE=/var/run/{{ php_fpm_daemon }}.pid
|
||||||
TIMEOUT=30
|
TIMEOUT=30
|
||||||
SCRIPTNAME=/etc/init.d/$NAME
|
SCRIPTNAME=/etc/init.d/$NAME
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user