daemon: Move diagnosing port listening into daemon module

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
This commit is contained in:
Sunil Mohan Adapa authored and James Valleroy committed 2019-12-30 11:37:52 -05:00
1 parent a1fd8f45be
commit 97d8166f31
6 files changed
+158 -98

No files matched your search

+2 -2
View File
@@ -22,7 +22,7 @@ from django.utils.translation import ugettext_lazy as _
from plinth import action_utils
from plinth import app as app_module
from plinth import menu
from plinth import daemon, menu
from .manifest import backup # noqa, pylint: disable=unused-import
@@ -58,7 +58,7 @@ class DiagnosticsApp(app_module.App):
def diagnose(self):
"""Run diagnostics and return the results."""
results = super().diagnose()
results.append(action_utils.diagnose_port_listening(8000, 'tcp4'))
results.append(daemon.diagnose_port_listening(8000, 'tcp4'))
results.extend(
action_utils.diagnose_url_on_all('http://{host}/plinth/',
check_certificate=False))