From: Mikhail Efremov <sem@altlinux.ru>
To: ALT Linux Community general discussions <community@lists.altlinux.org>
Subject: Re: [Comm] хуки при выходе из hibernate/suspend
Date: Sun, 15 Mar 2015 15:23:09 +0300
Message-ID: <20150315152309.08f14282@sem-notebook> (raw)
In-Reply-To: <2917079.Eysbf0NmPI@asy-nb.localdomain>
On Sun, 15 Mar 2015 15:31:33 +0400 Sergey wrote:
> On Sunday 15 March 2015 13:37:47 Mikhail Efremov wrote:
>
> > Вообще прикрутить использование хуков pm-utils к systemd не
> > сложно, насколько я это смотрел. Просто это, видимо, никому
> > было не надо.
>
> Это может быть не нужно только при условии, что там это уже
> есть в каком-то виде.
Я там не видел ничего готового, типа хуков pm-utils. Но есть механизм
для выполнения действий при sleep/resume. Там вполне можно использовать
скрипт, запускающий хуки pm-utils с правильными параметрами. Эти хуки
вполне разумны и удобны, я не вижу причин почему бы их не использовать
и в случае systemd тоже.
Я про то, что у нас никому, использующему systemd, это было не нужно,
раз никто еще этого не сделал.
> > Так что в systemd нужно писать свой unit с нужной командой.
>
> А какие именно юниты отрабатываются при выходе из спячки ?
> Не все же ? Или там есть какой-то флаг внутри юнит-файла ?
Там специальный тип юнита, кажется. Вроде где-то на вики Arch'а я видел
неплохое описание. В документации самого systemd тоже должно быть.
--
WBR, Mikhail Efremov
next prev parent reply other threads:[~2015-03-15 12:23 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-03-14 13:53 Sergey
2015-03-14 14:04 ` Sergey
2015-03-15 10:37 ` Mikhail Efremov
2015-03-15 11:31 ` Sergey
2015-03-15 12:23 ` Mikhail Efremov [this message]
2015-03-15 12:50 ` Mikhail Efremov
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=20150315152309.08f14282@sem-notebook \
--to=sem@altlinux.ru \
--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