mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-05-20 10:34:30 +00:00
diagnostics: Show firewall service status
Signed-off-by: Veiko Aasa <veiko17@disroot.org> Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
This commit is contained in:
parent
1068c32759
commit
8ef2c77891
@ -23,6 +23,7 @@ from django.utils.translation import ugettext_lazy as _
|
|||||||
from plinth import actions
|
from plinth import actions
|
||||||
from plinth import app as app_module
|
from plinth import app as app_module
|
||||||
from plinth import cfg, menu
|
from plinth import cfg, menu
|
||||||
|
from plinth.daemon import Daemon
|
||||||
from plinth.utils import Version, format_lazy
|
from plinth.utils import Version, format_lazy
|
||||||
|
|
||||||
from .manifest import backup # noqa, pylint: disable=unused-import
|
from .manifest import backup # noqa, pylint: disable=unused-import
|
||||||
@ -33,6 +34,8 @@ is_essential = True
|
|||||||
|
|
||||||
managed_packages = ['firewalld', 'nftables']
|
managed_packages = ['firewalld', 'nftables']
|
||||||
|
|
||||||
|
managed_services = ['firewalld']
|
||||||
|
|
||||||
name = _('Firewall')
|
name = _('Firewall')
|
||||||
|
|
||||||
description = [
|
description = [
|
||||||
@ -62,6 +65,9 @@ class FirewallApp(app_module.App):
|
|||||||
'firewall:index', parent_url_name='system')
|
'firewall:index', parent_url_name='system')
|
||||||
self.add(menu_item)
|
self.add(menu_item)
|
||||||
|
|
||||||
|
daemon = Daemon('daemon-firewall', managed_services[0])
|
||||||
|
self.add(daemon)
|
||||||
|
|
||||||
|
|
||||||
def init():
|
def init():
|
||||||
"""Initailze firewall module"""
|
"""Initailze firewall module"""
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user