[ovs-dev] [PATCH] rhel: Install the network scripts in a new subpackage

Timothy Redaelli tredaelli at redhat.com
Thu Aug 9 09:50:38 UTC 2018


On Wed, 8 Aug 2018 13:49:12 -0300
Flavio Leitner <fbl at sysclose.org> wrote:

> Actually, we also have dependencies in the systemd service
> to the network service:
> 
> [Unit]                                                                                              
> Description=Open vSwitch Forwarding Unit
> After=ovsdb-server.service network-pre.target
> systemd-udev-settle.service Before=network.target network.service
>                       ^^^^^^^^^^^^^^^ 
> 
> Looks like that would be gone, right?

I checked and "network.service" is an auto-generated service
(systemd-sysv-generator - Unit generator for SysV init scripts)
from /etc/rc.d/init.d/network that brings Up and Down the interfaces
(if you don't use Network Manager).

The explicit dependency is needed in order to avoid having it to run
before openvswitch / ovsdb-server.
Moreover it's also harmless to have it when network.service doesn't
exists since, in this case, systemd will only ignore the dependency.

For example, NetworkManager.service has "Before=network.target
network.service" on Fedora Rawhide too, since Fedora Rawhide still have
the support for the legacy network scripts (/etc/rc.d/init.d/network, in
network-scripts package).

> fbl



More information about the dev mailing list