[systemd-devel] making firewalld an early boot service

Lennart Poettering lennart at poettering.net
Wed Mar 9 11:09:13 UTC 2022


On Mi, 09.03.22 08:17, Michael Biebl (mbiebl at gmail.com) wrote:

> > firewalld requires D-Bus so it must be started after D-Bus. You cannot
> > start it earlier.
>
> See above, being Type=dbus, it has an explicit
> Requires/After=dbus.socket.

It has After=dbus.service, not After=dbus.socket, no?

That's a difference during shutdown: if you order against the service
this means you can still talk via the broker on shutdown. if you only
order against the socket the broker might be dead by the time you
shutdown.

Ideally services would be written in a style that they just exit at
shutdown and don't need to tdo D-Bus anymore just to exit. But of
course reality isn't always ideal.

Lennart

--
Lennart Poettering, Berlin


More information about the systemd-devel mailing list