systemd Create a service
Example of the service configuration file `selenium_hub.service`:
[Unit]
Description=Selenium hub
[Service]
Environment=DISPLAY=:99
ExecStart=/bin/bash -c 'java -jar /opt/selenium/selenium-server-standalone.jar -role hub'
User=root
[Install]
WantedBy=multi-user.target
sudo systemctl daemon-reload
sudo service selenium_hub status
sudo chkconfig selenium_hub on
sudo systemctl enable selenium_hub.service
download file now