A Task-like process you can add to your Supervisor to run a function before other processes are started.
Task
Supervisor