ALT Linux Community general discussions
 help / color / mirror / Atom feed
From: Evgeny Sinelnikov <sin@altlinux.org>
To: ALT Linux Community general discussions <community@lists.altlinux.org>
Subject: Re: [Comm] wol problem in P9
Date: Fri, 8 Nov 2019 10:58:18 +0400
Message-ID: <CAK42-GoZeqhtQStGvEvuSOK71miF1vreeKWpeg3G+-XO69bofA@mail.gmail.com> (raw)
In-Reply-To: <78229311573194838@sas1-25a2eb352605.qloud-c.yandex.net>

Здравствуйте,

пт, 8 нояб. 2019 г. в 10:34, Alexander Volkov <alt@vladregion.ru>:
>
> Всем привет.
>
> Есть машинка, на которой я работаю примерно с 2008 года, соответственно до Р8 это был SYSV & TDE, но браузеры перестали обновляться и я произвёл dist-upgrade до P9 & KDE5, systemd.
> Теперь никак не могу побороть неработающий wol, сделал и юнит, включив для enp5s0, и ethtool включил, правило udev даже добавил.
> На борту 2 сетевухи, настроенные в bond etcnet.
>
> grep -v ^# /etc/sysconfig/ethtool
> ETH=enp5s0 enp6s0
> wol=g
>
> grep -v ^# /etc/systemd/system/wol\@.service
> [Unit]
> Description=Wake-on-LAN for %i
> Before=shutdown.target
> Requires=poweroff.target
>
> [Service]
> ExecStop=/usr/bin/ethtool -s %i wol g
> Type=oneshot
> RemainAfterExit=true
>
> [Install]
> WantedBy=multi-user.target
>
> $ cat /etc/udev/rules.d/81-wol.rules
> ACTION=="add", SUBSYSTEM=="net", NAME=="enp*", RUN+="/usr/bin/ethtool -s $name wol g"
>
> Ничего не помогает.
> Может кто подсказать, как его готовить?

попробовал запустить утилиту ethtool, обнаружил, что у вас неправильно
указан путь. Утилита лежит не в /usr/bin, а в /usr/sbin:

[sin@base ~]$ /usr/bin/ethtool
bash: /usr/bin/ethtool: Нет такого файла или каталога
[sin@base ~]$ which ethtool
which: no ethtool in
(/home/sin/bin:/usr/lib/kf5/bin:/usr/local/bin:/usr/bin:/bin:/usr/games)
[sin@base ~]$ sudo which ethtool
/usr/sbin/ethtool

[sin@base ~]$ rpm -qf /usr/sbin/ethtool
ethtool-5.2-alt1.x86_64

Может быть такую фичу, как включение wol, нужно как-то опакетить? Вот
только смущает тут привязка к конкретной сетевухе, которая может
называться ethX, а не enpX. Да и контролировать бы хотелось где оно
включено. Но в целом?


-- 
Sin (Sinelnikov Evgeny)

  reply	other threads:[~2019-11-08  6:58 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-11-08  6:33 Alexander Volkov
2019-11-08  6:58 ` Evgeny Sinelnikov [this message]
2019-11-11  8:20   ` Alexander Volkov
2019-11-12  8:26     ` Alexander Volkov
2019-11-15 12:18       ` Alexander Volkov
2019-11-26  6:42         ` Alexander Volkov

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAK42-GoZeqhtQStGvEvuSOK71miF1vreeKWpeg3G+-XO69bofA@mail.gmail.com \
    --to=sin@altlinux.org \
    --cc=community@lists.altlinux.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

ALT Linux Community general discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/community/0 community/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 community community/ http://lore.altlinux.org/community \
		mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com
	public-inbox-index community

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.community


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git