The starting() method executes once just before running the controller. This method will only execute once before updating/running the controller. This method will work in a hard real-time manner. The starting() method declaration is given as follows:
virtual void starting();
The controller can also call the starting() method when it restarts the controller without unloading it.