diff --git a/src/bin/lqos_scheduler.service.example b/src/bin/lqos_scheduler.service.example index b9e6d39e..569c64ba 100644 --- a/src/bin/lqos_scheduler.service.example +++ b/src/bin/lqos_scheduler.service.example @@ -1,5 +1,6 @@ [Unit] -After=lqosd.service +After=network.service lqosd.service +Requires=lqosd.service [Service] WorkingDirectory=/opt/libreqos/src -- knotmirror 0.0.1 From fe938b4a47eeb110fee8124488f990eed161b810 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jaros=C5=82aw=20K=C5=82opotek=20-=20INTERDUO?= Date: Fri, 12 Jul 2024 15:44:59 +0200 Subject: [PATCH 2/4] pythonCheck.py: small code improvement --- src/pythonCheck.py | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/src/pythonCheck.py b/src/pythonCheck.py index d8e40efd..b4aa4d3d 100644 --- a/src/pythonCheck.py +++ b/src/pythonCheck.py @@ -4,11 +4,6 @@ def checkPythonVersion(): # Perform a version check import sys print("Running Python Version " + sys.version) - version_ok = True - if sys.version_info[0] < 3: - version_ok = False - if sys.version_info[0]==3 and sys.version_info[1] < 10: - version_ok = False - if version_ok == False: + if sys.version_info[0] < 3 or (sys.version_info[0]==3 and sys.version_info[1] < 10): print("LibreQoS requires Python 3.10 or greater.") - os._exit(-1) \ No newline at end of file + os._exit(-1) -- knotmirror 0.0.1 From cb76da29736d3fcb73896b166da2617d2be677ec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jaros=C5=82aw=20K=C5=82opotek=20-=20INTERDUO?= Date: Thu, 11 Jul 2024 12:10:51 +0200 Subject: [PATCH 3/4] build_rust.sh: restart lqos_scheduler after build_rust.sh --- src/build_rust.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/build_rust.sh b/src/build_rust.sh index 109c27f5..192f7266 100755 --- a/src/build_rust.sh +++ b/src/build_rust.sh @@ -91,6 +91,10 @@ if service_exists lqosd; then echo "lqosd is running as a service. Restarting it. You may need to enter your sudo password." sudo systemctl restart lqosd fi +if service_exists lqos_scheduler; then + echo "lqos_scheduler is running as a service. Restarting it. You may need to enter your sudo password." + sudo systemctl restart lqos_scheduler +fi if service_exists lqos_node_manager; then echo "lqos_node_manager is running as a service. Restarting it. You may need to enter your sudo password." sudo systemctl restart lqos_node_manager -- knotmirror 0.0.1 From dffd5e1a3350c76b32bb76570470c19714561cef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jaros=C5=82aw=20K=C5=82opotek=20-=20INTERDUO?= Date: Sat, 20 Jul 2024 15:50:35 +0200 Subject: [PATCH 4/4] fix: removed doubled check "is lqosd running" (#514) --- src/LibreQoS.py | 9 --------- 1 file changed, 9 deletions(-) diff --git a/src/LibreQoS.py b/src/LibreQoS.py index 8f492cb9..260cd2dd 100755 --- a/src/LibreQoS.py +++ b/src/LibreQoS.py @@ -1030,15 +1030,6 @@ def refreshShapers(): print("refreshShapers completed on " + datetime.now().strftime("%d/%m/%Y %H:%M:%S")) def refreshShapersUpdateOnly(): - - # Check that the host lqosd is running - if is_lqosd_alive(): - print("lqosd is running") - else: - print("ERROR: lqosd is not running. Aborting") - os._exit(-1) - - # Starting print("refreshShapers starting at " + datetime.now().strftime("%d/%m/%Y %H:%M:%S"))