mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-01-21 07:55:00 +00:00
mumble: Implement diagnostics
This commit is contained in:
parent
3f9bcafeeb
commit
4870e7dba3
@ -52,3 +52,15 @@ def is_enabled():
|
||||
def is_running():
|
||||
"""Return whether the service is running."""
|
||||
return action_utils.service_is_running('mumble-server')
|
||||
|
||||
|
||||
def diagnose():
|
||||
"""Run diagnostics and return the results."""
|
||||
results = []
|
||||
|
||||
results.append(action_utils.diagnose_port_listening(64738, 'tcp4'))
|
||||
results.append(action_utils.diagnose_port_listening(64738, 'tcp6'))
|
||||
results.append(action_utils.diagnose_port_listening(64738, 'udp4'))
|
||||
results.append(action_utils.diagnose_port_listening(64738, 'udp6'))
|
||||
|
||||
return results
|
||||
|
||||
@ -34,13 +34,15 @@
|
||||
|
||||
<h3>Status</h3>
|
||||
|
||||
<p>
|
||||
<p class="running-status-parent">
|
||||
{% if status.is_running %}
|
||||
<span class='running-status active'></span> Mumble server is running
|
||||
<span class="running-status active"></span> Mumble server is running
|
||||
{% else %}
|
||||
<span class='running-status inactive'></span> Mumble server is not running
|
||||
<span class="running-status inactive"></span> Mumble server is not running
|
||||
{% endif %}
|
||||
</p>
|
||||
{% include "diagnostics_button.html" with module="mumble" %}
|
||||
|
||||
|
||||
<h3>Configuration</h3>
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user