I'm currently writing a python app forking with Pyro4 and flask. In order to start up the app I to need :
- Start pyro4 name server
- Register my object in the pyro4 name server
- Start a flask web app to access pyro4 objects
I would like to do this with a systemd service file. I first though of using ExecStarPre and ExecStarPost for running pyro4 nameserver and flask web app ; but it seems that those fields are not use for long-running commands...
Do I need to make 3 systemd services which I start in a bash script that i call from a 4th systemd service ?
Thx for helping me
I'm trying to write a systemd service file