From 3f739baab456c2cc977f11090381d1f61eb023c4 Mon Sep 17 00:00:00 2001 From: xengineering Date: Thu, 15 Oct 2020 12:48:30 +0200 Subject: Split Executable to reduce root-priviledged Code Execution --- main.py | 29 ----------------------------- 1 file changed, 29 deletions(-) delete mode 100755 main.py (limited to 'main.py') diff --git a/main.py b/main.py deleted file mode 100755 index b50962a..0000000 --- a/main.py +++ /dev/null @@ -1,29 +0,0 @@ -#!/usr/bin/python3 - - -"""Main executable for the Package / Service""" - - -import iot_barcode_scanner as ibs - - -def main(): - try: - config = ibs.get_config() - mqtt_service = ibs.MqttService(config) - mqtt_service.run() - print("Starting Service") - while True: - text = input() - mqtt_service.client.publish( - config["mqtt"]["topic"], - payload=text, - qos=0, - retain=False - ) - except KeyboardInterrupt: - print("Service stopped") - - -if __name__ == "__main__": - main() -- cgit v1.2.3-70-g09d2