Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.