Giter Site home page Giter Site logo

Comments (4)

mohanboddu avatar mohanboddu commented on June 11, 2024

Just wanted to share @giuseppe initial idea here for reference:

diff --git a/src/firewall/server/firewalld.py b/src/firewall/server/firewalld.py
index 9c2f9d4a..df2cb7e1 100644
--- a/src/firewall/server/firewalld.py
+++ b/src/firewall/server/firewalld.py
@@ -10,6 +10,8 @@ from gi.repository import GLib
 import copy
 import dbus
 import dbus.service
+import os
+import subprocess
 
 from firewall import config
 from firewall.core.fw import Firewall
@@ -330,6 +332,8 @@ class FirewallD(DbusServiceObject):
     @dbus.service.signal(config.dbus.DBUS_INTERFACE)
     @dbus_handle_exceptions
     def Reloaded(self):
+        for i in os.listdir("/etc/firewalld/reload-scripts"):
+             subprocess.run(os.path.join("/etc/firewalld/reload-scripts", i))
         log.debug1("Reloaded()")
 
     @dbus_polkit_require_auth(config.dbus.PK_ACTION_CONFIG)

from firewalld.

erig0 avatar erig0 commented on June 11, 2024

@mheon, @mohanboddu, this is implemented in #1270. Take a look if you're interested.

from firewalld.

giuseppe avatar giuseppe commented on June 11, 2024

Wonderful! Thanks! @Luap99 what do you think about it?

from firewalld.

mohanboddu avatar mohanboddu commented on June 11, 2024

Thank you @erig0

from firewalld.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.