Staring the main.py as daemon if no argument was given, otherwise it starts in foreground.