Starting with release 1.3.0 the nodes have an option of automatically restarting after a certain amount of builds have been executed and the node is currently not busy. This helps to keep the nodes in pristine state for longer periods of time, and clears up and browser crashes, which may have occurred. Some setup will be needed to make this feature work as intended.
-
Setup default login user
-
Setup default start up task
-
Give permission to access OS.
Windows
-
Follow Microsoft's Technical Help
-
Add start up batch script to StartUp directory or set up a Scheduled Task to start the batch file automatically
-
No need to setup permission as long as current user can run the following command in the Terminal
OS X
-
Turn on Automatic Login option and make the desired user auto login
-
Set up the shell script which starts Grid Extras to run automatically.
-
Modify the /etc/sudoers to contain this line, where the $USER is the current user that will be used for running grid node.
$USER ALL=(ALL) NOPASSWD: /sbin/shutdown
Linux
-
...
-
Set up the shell script which starts Grid Extras to run automatically.
-
Modify the /etc/sudoers to contain this line, where the $USER is the current user that will be used for running grid node.
$USER ALL=(ALL) NOPASSWD: /sbin/shutdown
Source: https://github.com/groupon/Selenium-Grid-Extras