[arch-general] Multiple Wired Profiles with Systemd
Alper Kanat
tunix at raptiye.org
Tue Oct 23 08:56:36 EDT 2012
Hey All,
I just switched to systemd. I work on an Arch Linux Virtualbox VM which
runs on Mac OS X. I assigned 3 NIC's to that VM and 2 of them have
ethernet-dhcp profiles defined and set in /etc/conf.d/netcfg to be started
at boot.
$ cat /etc/conf.d/netcfg
NETWORKS=(public local)
However on boot, I see messages like the following:
Oct 23 15:18:52 starbucks netcfg-daemon[168]: :: public up Interface eth0
does not exist
Oct 23 15:18:52 starbucks netcfg-daemon[168]: :: local up Interface eth1
does not exist
Oct 23 15:18:52 starbucks netcfg-daemon[168]: [fail]
Oct 23 15:18:52 starbucks systemd[1]: netcfg.service: main process exited,
code=exited, status=1
Oct 23 15:18:52 starbucks systemd[1]: Failed to start Netcfg multi-profile
daemon.
Oct 23 15:18:52 starbucks systemd[1]: Unit netcfg.service entered failed
state.
Oct 23 15:18:52 starbucks systemd[1]: Starting Network.
Oct 23 15:18:52 starbucks systemd[1]: Reached target Network.
Oct 23 15:18:52 starbucks systemd[1]: Starting Apache Web Server...
Checking the interfaces via ifconfig shows that none of them are up. If I
start netcfg service manually, both interfaces will be up successfully:
$ sudo systemctl start netcfg
$ sudo systemctl status netcfg
netcfg.service - Netcfg multi-profile daemon
Loaded: loaded (/usr/lib/systemd/system/netcfg.service; enabled)
Active: active (exited) since Tue, 23 Oct 2012 15:33:02 +0300;
18min ago
Process: 354 ExecStart=/usr/bin/netcfg-daemon start (code=exited,
status=0/SUCCESS)
CGroup: name=systemd:/system/netcfg.service
├ 408 dhcpcd -qL -t 60 eth0
└ 474 dhcpcd -qL -t 60 eth1
I checked the forum to see if there are any solutions. Tried multi-user
services by enabling with the following commands resulted as the same:
$ sudo systemctl enable netcfg at public
$ sudo systemctl enable netcfg at local
Found out some threads on the forum that suggests to copy service
definitions and overwrite them but that didn't look like a solution to me.
All tickets created at flyspray was about 1 wireless - 1 wired setups. Some
of them are closed, marked as "Not a bug".
Anyone having the same issue? Any suggestions? Currently I enabled
netcfg.service. Sometimes all NICs are disabled, sometimes both are
enabled. Mostly however only 1 NIC (the first one) is up.
---
Quis custodiet ipsos custodes?
More information about the arch-general
mailing list