| 1009 | |
| 1010 | == Dependency failed for dhcpcd on eth0. == |
| 1011 | * # systemctl start dhcpcd@eth0 |
| 1012 | {{{ |
| 1013 | A dependency job for dhcpcd@eth0.service failed. See 'journalctl -xe' for details. |
| 1014 | }}} |
| 1015 | * # journalctl -xe |
| 1016 | {{{ |
| 1017 | Apr 10 20:00:56 test3 systemd[1]: Starting of sys-subsystem-net-devices-eth0.device not supported. |
| 1018 | -- Subject: Unit sys-subsystem-net-devices-eth0.device has failed |
| 1019 | -- Defined-By: systemd |
| 1020 | -- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel |
| 1021 | -- |
| 1022 | -- Unit sys-subsystem-net-devices-eth0.device has failed. |
| 1023 | -- |
| 1024 | -- The result is unsupported. |
| 1025 | Apr 10 20:00:56 test3 systemd[1]: Dependency failed for dhcpcd on eth0. |
| 1026 | -- Subject: Unit dhcpcd@eth0.service has failed |
| 1027 | -- Defined-By: systemd |
| 1028 | -- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel |
| 1029 | -- |
| 1030 | -- Unit dhcpcd@eth0.service has failed. |
| 1031 | -- |
| 1032 | -- The result is dependency. |
| 1033 | Apr 10 20:00:56 test3 systemd[1]: dhcpcd@eth0.service: Job dhcpcd@eth0.service/start failed with result 'dependency'. |
| 1034 | }}} |
| 1035 | |
| 1036 | * /usr/lib/systemd/system/dhcpcd@.service |
| 1037 | {{{ |
| 1038 | [Unit] |
| 1039 | Description=dhcpcd on %I |
| 1040 | Wants=network.target |
| 1041 | Before=network.target |
| 1042 | BindsTo=sys-subsystem-net-devices-%i.device |
| 1043 | After=sys-subsystem-net-devices-%i.device |
| 1044 | |
| 1045 | [Service] |
| 1046 | Type=forking |
| 1047 | PIDFile=/run/dhcpcd-%I.pid |
| 1048 | ExecStart=/usr/bin/dhcpcd -q -w %I |
| 1049 | ExecStop=/usr/bin/dhcpcd -x %I |
| 1050 | |
| 1051 | [Install] |
| 1052 | WantedBy=multi-user.target |
| 1053 | }}} |
| 1054 | * {{{BindsTo=}}}, {{{After=}}}の行を削除することで対応可能 |
| 1055 | |
| 1056 | * see also |
| 1057 | * [https://bbs.archlinux.org/viewtopic.php?id=164753 Netctl doesn't work in LXC (Linux containers) due to udev dependency / Networking, Server, and Protection / Arch Linux Forums] |
| 1058 | * [https://bugs.archlinux.org/task/35715 FS#35715 : (netctl) fails to start network inside Linux Container] |