OTP applications
| The app behaviour | |
| Applications env | |
| Start type | |
| Vsn field |
The app behaviour
Every OTP application implements the app behaviour. The module exports three callbacks: start/2, stop/1, and config_changed/3. The start callback returns a supervisor tree, and the stop callback tears it down.
-behaviour(application).
-start(Type, Args).
-stop(State).
-config_changed/3 is optional.
Next: Files and IO
Article author: Arthur Isaev