mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-09-19 04:59:01 +00:00
quassel: Implement diagnostics
This commit is contained in:
parent
e74c4791ec
commit
6bc9c3bd8e
@ -50,3 +50,13 @@ def is_enabled():
|
|||||||
def is_running():
|
def is_running():
|
||||||
"""Return whether the service is running."""
|
"""Return whether the service is running."""
|
||||||
return action_utils.service_is_running('quasselcore')
|
return action_utils.service_is_running('quasselcore')
|
||||||
|
|
||||||
|
|
||||||
|
def diagnose():
|
||||||
|
"""Run diagnostics and return the results."""
|
||||||
|
results = []
|
||||||
|
|
||||||
|
results.append(action_utils.diagnose_port_listening(4242, 'tcp4'))
|
||||||
|
results.append(action_utils.diagnose_port_listening(4242, 'tcp6'))
|
||||||
|
|
||||||
|
return results
|
||||||
|
|||||||
@ -47,6 +47,9 @@
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
|
{% include "diagnostics_button.html" with module="quassel" %}
|
||||||
|
|
||||||
|
|
||||||
<h3>{% trans "Configuration" %}</h3>
|
<h3>{% trans "Configuration" %}</h3>
|
||||||
|
|
||||||
<form class="form" method="post">
|
<form class="form" method="post">
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user