我已经把这个服务添加到systemctl enable netcfg启动了,
这是/etc/conf.d/network的内容,
NETWORKS=(eth0 eth1)
WIRED_INTERFACE="eth0"
WIRELESS_INTERFACE="wlan0"
AUTO_PROFILES=(eth0 eth1)以及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.targetnetcfg日志:
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它不工作(随机工作?),输出说netcfg失败了,但是手动调用它有效,为什么?

发布于 2013-07-24 01:02:58
netcfg被否决了。升级到netctl,然后重试。
https://unix.stackexchange.com/questions/53276
复制相似问题