Skip to content

Instantly share code, notes, and snippets.

@husseycoding
Created August 22, 2014 06:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save husseycoding/04bf12a107458db2b38b to your computer and use it in GitHub Desktop.
Save husseycoding/04bf12a107458db2b38b to your computer and use it in GitHub Desktop.
HHVM 3.2 upstart script
description "HHVM auto start and respawn"
author "Jonathan Hussey <info@husseycoding.co.uk>"
start on runlevel [2345]
stop on runlevel [016]
respawn
exec /usr/bin/hhvm --config /etc/hhvm/php.ini --config /etc/hhvm/server.ini --user www-data --mode daemon -vPidFile=/var/run/hhvm/pid
; php options
pid = /var/run/hhvm/pid
; hhvm specific
hhvm.server.port = 9000
hhvm.server.type = fastcgi
hhvm.server.default_document = index.php
hhvm.log.use_log_file = true
hhvm.log.file = /var/log/hhvm/error.log
hhvm.repo.central.path = /var/run/hhvm/hhvm.hhbc
hhvm.server.fix_path_info = true
hhvm.log.header = true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment