Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

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

share|improve this question
    
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 –  warl0ck 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 –  warl0ck 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

1 Answer 1

netcfg is deprecated. Upgrade to netctl and try again.

share|improve this answer
    
This question was asked in 2012, when netcfg was not deprecated. –  paraxor 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 at 17:49

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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