Bug#766943: systemd: server no longer gets networking after switching to systemd

Christoph Anton Mitterer calestyo at scientia.net
Tue Oct 28 03:34:48 GMT 2014


On Mon, 2014-10-27 at 14:50 +0100, Michael Biebl wrote: 
> Christoph, can you add a "sleep 30" to /etc/init.d/networking right
> before it calls ifup in its start action.
Sure... the exact change I've made is that: 
--- /etc/init.d/networking.orig	2014-09-23 17:35:33.000000000 +0200
+++ /etc/init.d/networking	2014-10-28 04:02:18.220160885 +0100
@@ -133,12 +133,16 @@
 	set -f
 	exclusions=$(process_exclusions)
 	log_action_begin_msg "Configuring network interfaces"
+echo here we sleep before the ifup in /e/init.d/networking start $(date) >> /root/network-restarter.log.2
+sleep 30
+echo this is right before the ifup in /e/init.d/networking start $(date) >> /root/network-restarter.log.2
 	if ifup -a $exclusions $verbose
 	then
 	    log_action_end_msg $?
 	else
 	    log_action_end_msg $?
 	fi
+echo this is right after the ifup in /e/init.d/networking start $(date) >> /root/network-restarter.log.2
 	;;
 
 stop)


So as you can see this is also written to /root/
network-restarter.log.2 . Both network-restarter.log* files are
completely fresh versions (no longer containing the stuff from the
previous mail... I renamed them here in the mail to avoid confusion.

Attached is also the journalctl -alb output from 4 consecutive reboots.



> If that makes the network come up properly, this might indicate that
> "ifup -a" is run before the eth0 interface is available.
I made 6 reboots with the sleep (only included the first 4 here in the
logs)... in all of them the network was brought up correctly (as you can
see from the network-restarter.log, which contains no entry of manually
restarting the networking.
So your guess seem to be right.


Cheers,
Chris.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: journalctr-alb-with-30sec-sleep.run1.log.xz
Type: application/x-xz
Size: 30188 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/pkg-systemd-maintainers/attachments/20141028/b9250046/attachment.xz>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: journalctr-alb-with-30sec-sleep.run2.log.xz
Type: application/x-xz
Size: 28048 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/pkg-systemd-maintainers/attachments/20141028/b9250046/attachment-0001.xz>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: journalctr-alb-with-30sec-sleep.run3.log.xz
Type: application/x-xz
Size: 28120 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/pkg-systemd-maintainers/attachments/20141028/b9250046/attachment-0002.xz>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: journalctr-alb-with-30sec-sleep.run4.log.xz
Type: application/x-xz
Size: 27684 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/pkg-systemd-maintainers/attachments/20141028/b9250046/attachment-0003.xz>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: network-restarter-with-30sec-sleep.log
Type: text/x-log
Size: 189 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/pkg-systemd-maintainers/attachments/20141028/b9250046/attachment-0012.bin>
-------------- next part --------------
here we sleep before the ifup in /e/init.d/networking start Tue Oct 28 04:07:28 CET 2014
this is right before the ifup in /e/init.d/networking start Tue Oct 28 04:07:58 CET 2014
this is right after the ifup in /e/init.d/networking start Tue Oct 28 04:08:10 CET 2014
here we sleep before the ifup in /e/init.d/networking start Tue Oct 28 04:15:40 CET 2014
this is right before the ifup in /e/init.d/networking start Tue Oct 28 04:16:10 CET 2014
this is right after the ifup in /e/init.d/networking start Tue Oct 28 04:16:23 CET 2014
here we sleep before the ifup in /e/init.d/networking start Tue Oct 28 04:18:27 CET 2014
this is right before the ifup in /e/init.d/networking start Tue Oct 28 04:18:57 CET 2014
this is right after the ifup in /e/init.d/networking start Tue Oct 28 04:19:09 CET 2014
here we sleep before the ifup in /e/init.d/networking start Tue Oct 28 04:21:46 CET 2014
this is right before the ifup in /e/init.d/networking start Tue Oct 28 04:22:16 CET 2014
this is right after the ifup in /e/init.d/networking start Tue Oct 28 04:22:28 CET 2014
here we sleep before the ifup in /e/init.d/networking start Tue Oct 28 04:24:32 CET 2014
this is right before the ifup in /e/init.d/networking start Tue Oct 28 04:25:02 CET 2014
this is right after the ifup in /e/init.d/networking start Tue Oct 28 04:25:14 CET 2014
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 5313 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/pkg-systemd-maintainers/attachments/20141028/b9250046/attachment-0013.bin>


More information about the Pkg-systemd-maintainers mailing list