Skip to content

Instantly share code, notes, and snippets.

@forestbaker
Forked from stenver/gist:de525f67f54d91c49c49
Created October 11, 2015 20:20
Show Gist options
  • Save forestbaker/d56c59e58fcba0f8256f to your computer and use it in GitHub Desktop.
Save forestbaker/d56c59e58fcba0f8256f to your computer and use it in GitHub Desktop.
Simple bash service
start on runlevel [2345]
stop on runlevel [016]
respawn
respawn limit 10 10
kill signal INT
kill timeout 20
normal exit 0 TERM INT
script
sudo -u deployer sh -c "DISPLAY=localhost:1 xvfb-run --auto-servernum --server-num=1 chromedriver --port=9516 2>&1"
end script
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment