X-Git-Url: https://git.kaliko.me/?a=blobdiff_plain;f=launch;h=13528b7559e769e1fa4929b6f1c7e7a339dcf082;hb=cf5fee72c57cf6b6f09b9caa78ab9e547f1d7542;hp=b769204e37371b932218050ca0a8069d7e4becb6;hpb=ab9952e0258426133f6bb0fe6395ec7464dfdd33;p=mpd-sima.git diff --git a/launch b/launch index b769204..13528b7 100755 --- a/launch +++ b/launch @@ -103,11 +103,16 @@ def main(): # Loading contrib plugins load_contrib_plugins(sima) + + # Run as a daemon + if config.getboolean('daemon', 'daemon'): + sima.start() + try: - sima.run() + sima.foreground() except KeyboardInterrupt: logger.info('Caught KeyboardInterrupt, stopping') - sima.shutdown() + #sima.shutdown() def run():