Skip to content

Instantly share code, notes, and snippets.

@bjornjohansen
Created April 14, 2015 12:49
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 3 You must be signed in to fork a gist
  • Save bjornjohansen/9555c056a7e8d1b1947d to your computer and use it in GitHub Desktop.
Save bjornjohansen/9555c056a7e8d1b1947d to your computer and use it in GitHub Desktop.
# php7-fpm - The PHP FastCGI Process Manager
# Original script by Ondřej Surý. Adapted to php7-fpm by @bjornjohansen
description "The PHP FastCGI Process Manager"
author "Ondřej Surý <ondrej@debian.org>"
start on runlevel [2345]
stop on runlevel [016]
# Precise upstart does not support reload signal, and thus rejects the
# job. We'd rather start the daemon, instead of forcing users to
# reboot https://bugs.launchpad.net/ubuntu/+source/php5/+bug/1272788
#
# reload signal USR2
pre-start exec /usr/local/lib/php7-fpm-checkconf
respawn
exec /usr/local/php7/sbin/php-fpm --nodaemonize --fpm-config /usr/local/php7/etc/php-fpm.conf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment