Skip to content

Instantly share code, notes, and snippets.

Avatar
🤖
https://bit.ly/IqT6zt

Anthony Lapenna deviantony

🤖
https://bit.ly/IqT6zt
View GitHub Profile
@deviantony
deviantony / phantomjs
Last active Jan 4, 2018 — forked from wbotelhos/phantomjs_intaller.sh
Installer script to setup phantomjs 1.9.7, 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.
View phantomjs
#! /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