Last active
September 21, 2017 20:55
-
-
Save ipascual/92c6f47ba7c76e0dabbb8ffeac650bd5 to your computer and use it in GitHub Desktop.
DevOps - selenium standalone service
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
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