Skip to content

Instantly share code, notes, and snippets.

View matperez's full-sized avatar

Andrey Golovin matperez

  • Chelyabinsk, Russia
View GitHub Profile
@matperez
matperez / phantomjs
Last active August 29, 2015 14:28 — forked from deviantony/phantomjs
Installer script to setup phantomjs 1.9.8, it will remove any previous setup. Contains also the init script to manage phantomjs as a system service and the default configuration file. Tested on Ubuntu 12.04.
#! /bin/sh
# Init. script for phantomjs, based on Ubuntu 12.04 skeleton.
# Author: Anthony Lapenna <lapenna.anthony@gmail.com>
PATH=/sbin:/usr/sbin:/bin:/usr/bin
DESC="Phantomjs service"
NAME=phantomjs
DAEMON=/usr/bin/$NAME
PIDFILE=/var/run/$NAME.pid
SCRIPTNAME=/etc/init.d/$NAME