Skip to content

Instantly share code, notes, and snippets.

View s1mple's full-sized avatar

Matthew Piskorz s1mple

View GitHub Profile
@s1mple
s1mple / ubuntu-selenium-service.initd
Created January 27, 2016 23:44
Ubuntu Selenium Service
#!/bin/bash
case "${1:-''}" in
'start')
if test -f /tmp/selenium.pid
then
echo "Selenium is already running."
else
export DISPLAY=localhost:99.0
java -jar /usr/lib/selenium/selenium-server-standalone.jar -port 4444 -trustAllSSLCertificates > /var/log/selenium/output.log 2> /var/log/selenium/error.log & echo $! > /tmp/selenium.pid