diff --git a/python_apps/airtime_analyzer/airtime_analyzer/cli.py b/python_apps/airtime_analyzer/airtime_analyzer/cli.py index cb7b36b46..8d66b5d32 100644 --- a/python_apps/airtime_analyzer/airtime_analyzer/cli.py +++ b/python_apps/airtime_analyzer/airtime_analyzer/cli.py @@ -6,7 +6,6 @@ import argparse import os import airtime_analyzer.airtime_analyzer as aa -import daemon VERSION = "1.0" LIBRETIME_CONF_DIR = os.getenv("LIBRETIME_CONF_DIR", "/etc/airtime") @@ -18,7 +17,6 @@ def main(): """Entry-point for this application""" print("LibreTime Analyzer {}".format(VERSION)) parser = argparse.ArgumentParser() - parser.add_argument("-d", "--daemon", help="run as a daemon", action="store_true") parser.add_argument( "--debug", help="log full debugging output", action="store_true" ) @@ -42,20 +40,11 @@ def main(): if args.http_retry_queue_file: http_retry_queue_path = args.http_retry_queue_file - if args.daemon: - with daemon.DaemonContext(): - aa.AirtimeAnalyzerServer( - rmq_config_path=rmq_config_path, - http_retry_queue_path=http_retry_queue_path, - debug=args.debug, - ) - else: - # Run without daemonizing - aa.AirtimeAnalyzerServer( - rmq_config_path=rmq_config_path, - http_retry_queue_path=http_retry_queue_path, - debug=args.debug, - ) + aa.AirtimeAnalyzerServer( + rmq_config_path=rmq_config_path, + http_retry_queue_path=http_retry_queue_path, + debug=args.debug, + ) if __name__ == "__main__": diff --git a/python_apps/airtime_analyzer/setup.py b/python_apps/airtime_analyzer/setup.py index 9ed0c0490..f8af9881f 100644 --- a/python_apps/airtime_analyzer/setup.py +++ b/python_apps/airtime_analyzer/setup.py @@ -22,7 +22,6 @@ setup( "mutagen==1.42.0", "pika~=1.1.0", "file-magic", - "python-daemon", "requests>=2.7.0", "rgain3==1.0.0", "pycairo==1.19.1",