Skip to content

Instantly share code, notes, and snippets.

@ipascual
Last active September 21, 2017 20:55
Show Gist options
  • Save ipascual/92c6f47ba7c76e0dabbb8ffeac650bd5 to your computer and use it in GitHub Desktop.
Save ipascual/92c6f47ba7c76e0dabbb8ffeac650bd5 to your computer and use it in GitHub Desktop.
DevOps - selenium standalone service
adduser selenium
mkdir /usr/local/lib/selenium
cd /usr/local/lib/selenium
mv /home/centos/selenium-server-standalone-3.5.3.jar .
ln -s selenium-server-standalone-3.5.3.jar selenium-server.jar
cd /usr/lib/systemd/system
vi selenium.service
---
[Unit]
Description=Selenium Standalone Server
After=syslog.target network.target
[Service]
Type=simple
User=selenium
WorkingDirectory=/usr/local/lib/selenium
Environment=DISPLAY=:44
ExecStart=/usr/bin/java -jar ./selenium-server.jar
[Install]
WantedBy=multi-user.target
---
systemctl daemon-reload
systemctl start selenium
journalctl -f -u selenium
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment