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

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

NETWORKS=(eth0 eth1)
AUTO_PROFILES=(eth0 eth1)

And contents of netcfg.service:

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

ExecStart=/usr/bin/netcfg-daemon start
ExecStop=/usr/bin/netcfg-daemon stop


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

  • what is the content of your /etc/conf.d/netcfg, and what does the multi-profile looks like ?
    – slubman
    Oct 30 '12 at 12:03
  • @slubman updated
    – daisy
    Oct 30 '12 at 15:04
  • What does journalctl show for netcfg and could you paste what netcfg.service contents are?
    – Salil
    Oct 31 '12 at 5:42
  • @Salil all pasted
    – daisy
    Oct 31 '12 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 '12 at 11:06

netcfg is deprecated. Upgrade to netctl and try again.

  • This question was asked in 2012, when netcfg was not deprecated.
    – user26112
    Jul 24 '13 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 '13 at 6:55
  • ensuing Meta discussion: meta.unix.stackexchange.com/questions/1340/…
    – strugee
    Jan 20 '14 at 17:49

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.