Skip to content

Instantly share code, notes, and snippets.

View deviantony's full-sized avatar
🤖
https://bit.ly/IqT6zt

Anthony Lapenna deviantony

🤖
https://bit.ly/IqT6zt
View GitHub Profile
@deviantony
deviantony / phantomjs
Last active January 4, 2018 17:18 — 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.
#! /bin/sh
# Init. script for phantomjs, based on Ubuntu 12.04 skeleton.
# Author: Anthony Lapenna <[email protected]>
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