Skip to content

Instantly share code, notes, and snippets.

@elgatov
Created October 1, 2019 13:15
Show Gist options
  • Save elgatov/8849f9d95556162a17a3786bf08ad958 to your computer and use it in GitHub Desktop.
Save elgatov/8849f9d95556162a17a3786bf08ad958 to your computer and use it in GitHub Desktop.
selenium-grid.service
-----------------------------------------------------------------------------------------------------------------------------
[Unit]
Description=Selenium service
After=network.target
[Service]
User=selenium
Type=simple
#WorkingDirectory=/home/eduqaadmin
DeviceAllow=/dev/shm w
ExecStart=/bin/java -jar /opt/selenium-server-standalone.jar -role hub -hubConfig /home/eduqaadmin/hubconfig.json
#StandardOutput=/var/log/selenium_stdout.log
#StandardError=/var/log/selenium_stderr.log
[Install]
WantedBy=multi-user.target
selenium-node.service
-----------------------------------------------------------------------------------------------------------------------------
[Unit]
Description=Selenium nodes
After=network.target
[Service]
User=eduqaadmin
Type=simple
#WorkingDirectory=/home/eduqaadmin
ExecStart=/bin/xvfb-run '--server-args="-screen 0 2048x1536x24"' java -jar /opt/selenium-server-standalone.jar -role node -nodeConfig /home/eduqaadmin/nodeconfig.json
DeviceAllow=/dev/shm w
#PrivateTmp=true
[Install]
WantedBy=multi-user.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment