You will need to create a separate service alongside the program. Here's an example to get you started.