Forked from patrickwbarnes/firewalld-reload-hook.service
Created
July 17, 2023 11:43
-
-
Save mskarbek/1444916613c501e8b2e67a3ad1aee5a0 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Unit] | |
Description=firewalld reload hook - run a hook script on firewalld reload | |
Wants=dbus-broker.service | |
After=dbus-broker.service | |
[Service] | |
Type=simple | |
ExecStart=/bin/bash -c '/bin/busctl monitor --system --json=short --match "interface=org.fedoraproject.FirewallD1,member=Reloaded" | while read -r line ; do [ -x /usr/local/sbin/firewalld-reload-hook ] && /usr/local/sbin/firewalld-reload-hook ; done' | |
[Install] | |
WantedBy=multi-user.target |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment