Last active
August 29, 2015 14:16
-
-
Save yusufhm/16084b602364c256c47e to your computer and use it in GitHub Desktop.
Ubuntu upstart script for Selenium
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## WARNING: THIS IS CURRENTLY NOT WORKING BECAUSE SELENIUM DOES NOT HAVE | |
## A DISPLAY IN WHICH TO LAUNCH | |
description "Selenium Server Standalone" | |
author "Yusuf" | |
start on runlevel [2345] | |
stop on runlevel [!2345] | |
#Respawn the process if it crashes | |
#If it respawns more than 10 times in 5 seconds stop | |
respawn | |
respawn limit 10 5 | |
expect fork | |
script | |
export DISPLAY=:0.0 | |
cd /opt | |
java -jar selenium-server-standalone.jar > /var/log/selenium-server-standalone.log 2>&1 | |
end script |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment