3

I already add this service to startup with systemctl enable netcfg,

here's contents of /etc/conf.d/network,

NETWORKS=(eth0 eth1)
WIRED_INTERFACE="eth0"
WIRELESS_INTERFACE="wlan0"
AUTO_PROFILES=(eth0 eth1)

And contents of netcfg.service:

[root@localhost ~]# cat /etc/systemd/system/multi-user.target.wants/netcfg.service 
[Unit]
Description=Netcfg multi-profile daemon
Before=network.target
Wants=network.target

[Service]
Type=oneshot
RemainAfterExit=yes
ExecStart=/usr/bin/netcfg-daemon start
ExecStop=/usr/bin/netcfg-daemon stop
KillMode=none

[Install]
WantedBy=multi-user.target

journalctl logs of netcfg:

Oct 29 XXXXXX localhost netcfg-daemon[182]: No recorded netcfg state to restore
Oct 29 XXXXXX localhost systemd[1]: netcfg.service: main process exited, code=exited, status=1/FAILURE
Oct 29 XXXXXX localhost systemd[1]: Failed to start Netcfg multi-profile daemon.
Oct 29 XXXXXX localhost systemd[1]: Unit netcfg.service entered failed state

It doesn't work (works randomly?), the output says netcfg failed, but invoke it manually works, why?

enter image description here

7
  • what is the content of your /etc/conf.d/netcfg, and what does the multi-profile looks like ?
    – slubman
    Oct 30, 2012 at 12:03
  • @slubman updated
    – daisy
    Oct 30, 2012 at 15:04
  • What does journalctl show for netcfg and could you paste what netcfg.service contents are?
    – Salil
    Oct 31, 2012 at 5:42
  • @Salil all pasted
    – daisy
    Oct 31, 2012 at 6:24
  • Sorry, did not find anything revealing. If you just want to use ethernet interface, I am wondering why don't you just use dhcpd instead. I have stopped using netcfg even for wireless; wpa_supplicant and dhcpd works fine for me.
    – Salil
    Nov 1, 2012 at 11:06

1 Answer 1

3

netcfg is deprecated. Upgrade to netctl and try again.

3
  • This question was asked in 2012, when netcfg was not deprecated.
    – user26112
    Jul 24, 2013 at 1:21
  • 1
    @EvanTeitelman yes, but it's worth noting for e.g. people coming from Google. Plus, it gets it off the unanswered list.
    – strugee
    Jul 24, 2013 at 6:55
  • ensuing Meta discussion: meta.unix.stackexchange.com/questions/1340/…
    – strugee
    Jan 20, 2014 at 17:49

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .