Created
April 15, 2020 04:12
-
-
Save patrickwbarnes/c1dce088e3396d4f3ceacd3312c2248b 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