Summary: | etcnet systemd integration | ||
---|---|---|---|
Product: | Sisyphus | Reporter: | Anton Farygin <rider> |
Component: | etcnet | Assignee: | Mikhail Efremov <sem> |
Status: | CLOSED FIXED | QA Contact: | qa-sisyphus |
Severity: | normal | ||
Priority: | P3 | CC: | ldv, rider, sem, shaba, vseleznv |
Version: | unstable | ||
Hardware: | all | ||
OS: | Linux |
Description
Anton Farygin
2017-06-25 21:28:09 MSK
Для решения этой проблемы предлагается добавить юнит такого содержимого: # cat /etc/systemd/system/network@.service [Unit] Description=Network connectivity (%i) Wants=network.target Before=network.target BindsTo=sys-subsystem-net-devices-%i.device After=sys-subsystem-net-devices-%i.device [Service] Type=oneshot RemainAfterExit=yes ExecStart=/sbin/ifup %i ExecStop=/sbin/ifdown %i [Install] WantedBy=multi-user.target После добавления юнита systemd будет достаточно отключить запуск интерфейса в etcnet через ONBOOT=no и активировать его через systemd: systemctl enable network@eth0 systemctl start network@eth0 etcnet-0.9.12-alt1 -> sisyphus: Mon Jun 26 2017 Anton Farygin <rider@altlinux.ru> 0.9.12-alt1 - added network@.service for manage interfaces via systemctl (for example - systemctl enable network@eth0) (closes: #33588) - bonding: avoid autocreated bond0 iface by dshadrinov (closes: #33273) - efw: walk fw type list backward on stop by sbolshakov (closes: #33011) - weakening checks to enable empty bridge interfaces creation by naf (closes: #33295) |