quassel: Implement diagnostics

This commit is contained in:
Sunil Mohan Adapa 2015-12-12 15:35:43 +05:30
parent e74c4791ec
commit 6bc9c3bd8e
2 changed files with 13 additions and 0 deletions

View File

@ -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

View File

@ -47,6 +47,9 @@
{% endif %}
</p>
{% include "diagnostics_button.html" with module="quassel" %}
<h3>{% trans "Configuration" %}</h3>
<form class="form" method="post">