[systemd-devel] Prepend a number to the config file name
Mantas Mikulėnas
grawity at gmail.com
Wed Sep 12 15:45:50 UTC 2018
On Wed, Sep 12, 2018, 17:09 Gervais, Francois <FGervais at distech-controls.com>
wrote:
> Hi,
>
> I saw some systemd examples on the web (i.e. 20-wired.network) that use a
> number at the beginning
> of the config file name like we do for udev rules.
>
> In systemd there's a pretty good control over ordering already in the
> configuration
> itself so I'm not sure there would be a need to control the parsing order
> using file name tricks.
>
> Would you say it's advisable to use such prepended number in file names
> with systemd?
>
networkd configurations don't work the same way as systemd units do. The
.network files are matching-based, first-match-wins – so the order is
important.
In general, .network files (and various other daemons' drop-in .conf files)
are more similar to udev rules than to systemd units.
--
Mantas Mikulėnas
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/systemd-devel/attachments/20180912/ef981a9f/attachment-0001.html>
More information about the systemd-devel
mailing list