mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-04-08 09:41:35 +00:00
quassel: Implement diagnostics
This commit is contained in:
parent
e74c4791ec
commit
6bc9c3bd8e
@ -50,3 +50,13 @@ def is_enabled():
|
||||
def is_running():
|
||||
"""Return whether the service is running."""
|
||||
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 %}
|
||||
</p>
|
||||
|
||||
{% include "diagnostics_button.html" with module="quassel" %}
|
||||
|
||||
|
||||
<h3>{% trans "Configuration" %}</h3>
|
||||
|
||||
<form class="form" method="post">
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user