From: "Денис Смирнов" <mithraen@freesource.info>
To: sisyphus@lists.altlinux.org
Subject: Re: [sisyphus] systemd и вывление циклов.
Date: Fri, 11 Jul 2014 02:39:22 +0400
Message-ID: <20140710223922.GA13900@mw.mithraen.ru> (raw)
In-Reply-To: <53BEF9B7.2010406@mail.ru>
[-- Attachment #1: Type: text/plain, Size: 1231 bytes --]
On Fri, Jul 11, 2014 at 12:38:15AM +0400, Шенцев Алексей Владимирович wrote:
> Как выявить, из-за чего в systemd возникают циклы?
Циклы возникают из-за наличия одновременно трех видов зависимостей:
1. между нормальными сервисами systemd
2. между LSB initscripts
3. между обычными SysV initscripts
Так как у последних зависимостей как таковых нет -- там есть исключительно
последовательность.
При автоматическом генерировании сервисов systemd для запуска
соответствующих SysV скриптов у каждого сервиса создается зависимости на
все сервисы, которые находятся 'раньше' по номеру. И такие
автосгенерированные зависимости часто не соответствуют уже созданным
корректным зависимостям между соответствующими SysV-initscripts.
У проблемы есть три решения (начиная с лучших):
1. договариваться с мантейнерами, чтобы упаковали корректный systemd
service
2. локально написать (воспользовавшись google, где есть примеры) и
положить в /etc/systemd/system соответствующий service.
3. взять из /run/systemd/generators.later результат автогенерирования
(который вызывает оригинальный initscript), скопировать его в
/etc/systemd/system и исправить в нем зависимости
--
С уважением, Денис
http://mithraen.ru/
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 181 bytes --]
prev parent reply other threads:[~2014-07-10 22:39 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-07-10 20:38 Шенцев Алексей Владимирович
2014-07-10 22:39 ` Денис Смирнов [this message]
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=20140710223922.GA13900@mw.mithraen.ru \
--to=mithraen@freesource.info \
--cc=sisyphus@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 Sisyphus discussions
This inbox may be cloned and mirrored by anyone:
git clone --mirror http://lore.altlinux.org/sisyphus/0 sisyphus/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 sisyphus sisyphus/ http://lore.altlinux.org/sisyphus \
sisyphus@altlinux.ru sisyphus@altlinux.org sisyphus@lists.altlinux.org sisyphus@lists.altlinux.ru sisyphus@lists.altlinux.com sisyphus@linuxteam.iplabs.ru sisyphus@list.linux-os.ru
public-inbox-index sisyphus
Example config snippet for mirrors.
Newsgroup available over NNTP:
nntp://lore.altlinux.org/org.altlinux.lists.sisyphus
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git