1
0
mirror of https://github.com/containers/netavark.git synced 2026-02-05 15:45:47 +01:00
Files
netavark/contrib/systemd/system/netavark-firewalld-reload.service.in
Paul Holzinger cb5aa2eae8 add firewalld-reload subcommand
This command listens on dbus for the firewalld reload event.
Also include a systemd unit that starts this process with firewalld
(only when unit was enabled) and stops it when firewalld is stopped.
With this the process only runs when actually needed and does not
consume resources on systems without firewalld.

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2023-11-13 15:55:36 +01:00

13 lines
402 B
SYSTEMD

[Unit]
Description=Listen for the firewalld reload event and reapply all netavark firewall rules.
# This causes systemd to stop this unit when firewalld is stopped.
PartOf=firewalld.service
After=firewalld.service
[Service]
ExecStart=@@NETAVARK@@ firewalld-reload
[Install]
# If the unit is enabled add a wants to firewalld so it is only started when firewalld is started.
WantedBy=firewalld.service