Stefal / rtkbase

Your own GNSS base station for RTK localization with a Web GUI
GNU Affero General Public License v3.0
492 stars 122 forks source link

Service rtkbase_gnss_web_proxy.service is not shown in diagnostics #421

Closed Jef239 closed 1 month ago

Jef239 commented 3 months ago

Service rtkbase_gnss_web_proxy.service is not shown in diagnostics

I fix it:


@@ -502,8 +505,10 @@ def diagnostic():
     getServicesStatus()
     rtkbase_web_service = {'service_unit' : 'rtkbase_web.service', 'name' : 'RTKBase Web Server', 'active' : True}
+    rtkbase_gnss_web_proxy_service = {'service_unit' : 'rtkbase_gnss_web_proxy.service', 'name' : 'RTKBase Reverse Proxy for Gnss receiver Web Server'}
+    rtkbase_gnss_web_proxy_service["active"] = ServiceController(rtkbase_gnss_web_proxy_service["service_unit"]).isActive()
     logs = []
-    for service in services_list + [rtkbase_web_service]:
+    for service in services_list + [rtkbase_web_service, rtkbase_gnss_web_proxy_service]:
         sysctl_status = subprocess.run(['systemctl', 'status', service['service_unit']],
                                 stdout=subprocess.PIPE,
                                 universal_newlines=True,