mirror of
https://github.com/containers/netavark.git
synced 2026-02-05 15:45:47 +01:00
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>
13 lines
402 B
SYSTEMD
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
|