Last active
December 28, 2015 04:48
-
-
Save SyntaxC4/7444662 to your computer and use it in GitHub Desktop.
Upstart script for hhVM on Ubuntu 13.04
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Server { | |
SourceRoot = /var/www | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Upstart HipHopVM | |
description "Automatically Start HipHopVM on Server Start" | |
author "Cory Fowler <[email protected]>" | |
# Start | |
start on runlevel [2345] | |
# Stop | |
stop on runlevel [016] | |
# Restart on unexpected failure | |
respawn | |
# Run in it's own process | |
expect fork | |
expect deamon | |
exec hhvm -m server -c /etc/hhvm/config.hdf |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Setup
Set up a Ubuntu 13.04 Virtual Machine
Install hhVM on Ubuntu
create configuration file
create SourceRoot
Copy web files into SourceRoot
Copy Upstart conf file into
/etc/init