Skip to content

Instantly share code, notes, and snippets.

View gerard-kanters's full-sized avatar

Gerard Kanters gerard-kanters

View GitHub Profile
@gerard-kanters
gerard-kanters / solr
Created October 15, 2014 15:51
/etc/init.d/solr
#!/bin/bash
# Script for running solr as a service under initd.
#
# Requires solr.conf and solr.start
# Usage: service solr {start|stop|restart|status}"
#
#-----------------------------------------------------
### BEGIN INIT INFO
# Provides: solr
# Required-Start:
@gerard-kanters
gerard-kanters / solr.conf
Last active August 29, 2015 14:07
/etc/solr.conf
#-----------------------------------------------------
# solr-initd v0.5.1
#-----------------------------------------------------
# Configuration for solr.init. Copy this to:
#
# /etc/solr.conf
#
# NOTE: if you are installing this somewhere else then
# you need to alter solr.start and solr.initd.
#
@gerard-kanters
gerard-kanters / solr.start
Created October 15, 2014 15:48
solr.start (put in /var/lib/)
#!/bin/bash
#-----------------------------------------------------
# solr-initd v0.5.1
#-----------------------------------------------------
# Starts solr and writes a pid file. Meant
# to be used with the initd script but this
# can be used on it's own
#
# Requires /etc/solr.conf
# Usage: ./solr.start
@gerard-kanters
gerard-kanters / server.ini
Last active September 18, 2016 12:17
HHVM server ini
;extension = /usr/lib64/php/modules/geoip.so
hhvm.pid_file = "/var/run/hhvm/hhvm.pid"
hhvm.server.port = 9000
hhvm.server.fix_path_info = true
hhvm.server.type = fastcgi
hhvm.server.enable_magic_quotes_gpc = false
hhvm.server.enable_keep_alive = true
hhvm.server.enable_ssl = true
hhvm.log.access_log_default_format = "%h %l %u %t \"%r\" %>s %b"
@gerard-kanters
gerard-kanters / hhvm
Last active January 26, 2017 12:26
HHVM init script
#!/bin/bash
#
# hhvm Startup script for the HipHop Server
#
# chkconfig: - 85 15
# description: HHVM is an open-source virtual machine designed for executing programs written in Hack and PHP
# processname: hhvm
# config: /etc/php.ini
# config: /etc/hhvm/server.ini
# pidfile: /var/run/hhvm/hhvm.pid