Skip to content

Instantly share code, notes, and snippets.

@dovy
Last active November 20, 2016 15:25
Show Gist options
  • Save dovy/ccb1362d9628ddc7457e to your computer and use it in GitHub Desktop.
Save dovy/ccb1362d9628ddc7457e to your computer and use it in GitHub Desktop.
# Defaults for ps-watcher initscript
# sourced by /etc/init.d/ps-watcher
# installed at /etc/default/ps-watcher by the maintainer scripts
# prevent startup without configuration file
# set the below varible to 1 in order to allow ps-watcher to start
startup=1
# Specify your configfile here
CONFIG="/etc/ps-watcher.conf"
# Additional options that are passed to the Daemon.
# here: check every 150 secs
DAEMON_OPTS="--sleep 60"
; 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.jit_a_size=251658240
hhvm.jit_a_cold_size=100663296
hhvm.jit_a_frozen_size=167772160
hhvm.jit_a_prof_size=268435456
hhvm.jit_a_max_usage=251658240
hhvm.jit_global_data_size=62914560
location ~ \.(hh|php)$ {
proxy_intercept_errors on;
error_page 502 = @fallback;
try_files $uri =404;
fastcgi_split_path_info ^(.+\.php)(/.+)$;
fastcgi_keep_conn on;
include fastcgi_params;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}
location @fallback {
try_files $uri =404;
fastcgi_split_path_info ^(.+\.php)(/.+)$;
include fastcgi_params;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param SERVER_NAME $host;
fastcgi_pass unix:/var/run/php5-fpm.sock;
}
[hhvm]
occurs = none
action = service hhvm restart
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment