]> git.proxmox.com Git - mirror_ifupdown2.git/commit - debian/ifupdown2.networking.service
Create a networking service script, so we can run it after switchd
authorDave Olson <olson@cumulusnetworks.com>
Wed, 20 Jan 2016 19:57:41 +0000 (11:57 -0800)
committerDave Olson <olson@cumulusnetworks.com>
Wed, 20 Jan 2016 21:05:13 +0000 (13:05 -0800)
commit07678ee4ce1e2867da25fd6e8a71d6526af03d5f
treea9fddd331145e7001261d879267f7d3c31cfa411
parent9022763806789d25b25d3fb8604d46bdda0ce594
Create a networking service script, so we can run it after switchd

Ticket: CM-8790
Reviewed By: wkok,roopa
Testing Done: built, installed, rebooted

jessie's networking starts as an init.d service.   Trying to force ordering
between init.d and systemd services when there are dependencies doesn't work
well (especially since the init.d/networking service is forced very early
because of the remote filesystem requirement in jesie).

Converting networking to a script run as a systemd service allows us to start
networking after switchd.  The new script is /sbin/start-networking.  I chose
to keep it in /sbin, rather than put it in /usr/cumulus/bin, because it's core
functionaity.

I am not removing /etc/init.d/networking, it just gets ignored unless somebody
types it manually.  If somebody does that, systemctl runs through the lsb
hooks.  The two lost abilities below are just ignored if passed.  I'm
also preventing creating the rc.d symlinks to the init.d/networking
script to reduce future confusion.

We lose some init.d "convenience" functionality because it's not available
through systemd.  What we lose are:
  reload-currently-up - can still be done with ifreload --currently-up
  force-reload - can still be done with ifreload -f -a
We keep start, stop, reload, restart
debian/ifupdown2.install
debian/ifupdown2.networking.service [new file with mode: 0644]
debian/rules
sbin/start-networking [new file with mode: 0755]