ALT Linux Sisyphus discussions
 help / color / mirror / Atom feed
From: Aleksey Avdeev <solo@solin.spb.ru>
To: ALT Linux Sisyphus discussions <sisyphus@lists.altlinux.org>
Subject: Re: [sisyphus] A: Прошу тестировать доработанные sustemd и dbus
Date: Thu, 18 Feb 2016 15:49:05 +0300
Message-ID: <56C5BDC1.2030803@solin.spb.ru> (raw)
In-Reply-To: <20160217232652.GC31739@altlinux.org>

[-- Attachment #1: Type: text/plain, Size: 2619 bytes --]

18.02.2016 02:26, Dmitry V. Levin пишет:
> On Mon, Feb 15, 2016 at 01:06:23PM +0300, Alexey Shabalin wrote:
>> 11 февраля 2016 г., 9:06 пользователь Aleksey Avdeev написал:
>>> 10.02.2016 23:41, Aleksey Avdeev пишет:
>>> ...
>>>>
>>>> 2. sysvinit-tmpfiles-0.1-alt0.M70T.1 (см.
>>>> <http://git.altlinux.org/people/solo/packages/sysvinit-tmpfiles.git?p=sysvinit-tmpfiles.git;a=commit;h=56e0cca154df8e170016caf2c0542b252cee0091>)
>>>> -- Поддержка tmpfiles для sysvinit.
>>>
>>>   В <http://git.altlinux.org/tasks/158607/> вариант для Сизифа:
>>> sysvinit-tmpfiles-0.1-alt1 (см.
>>> <http://git.altlinux.org/people/solo/packages/sysvinit-tmpfiles.git?p=sysvinit-tmpfiles.git;a=commit;h=55a1ee0c5e4a2c0f0eba0693ab641facb13c8abb>).
>>
>> Алексей, в задании #159059 новый systemd-229, в который добавлен ваш
>> сервис tmpfiles, с небольшими моими правками.
> 
> Там в пакет systemd-utils просочились %_initdir/tmpfiles и
> %_sysconfdir/cron.daily/tmpfiles; если эти файлы не нужны
> для systemd-only системы, то их надо убрать из systemd-utils.

  По результатам экспериментов с sysvinit-tmpfiles у меня сложилось
мнение, что наиболее простой вариант получения чистых systemd-only
систем -- вынос поддержки sysvinit в отдельные подпакеты, например с
названиями вида *-sysvinit (тогда на systemd-only системах их можно не
ставить). Причины:

1. Для нормальной установки на систему под systemd, пакет содержащий
%_initdir/<name> должен содержать и /lib/systemd/system/<name>.service.
Иначе при установки пакета будут наблюдаться ошибки (см.
<https://lists.altlinux.org/pipermail/sisyphus/2016-February/364737.html>).

2. При этом симлинк вида /lib/systemd/system/<name>.service -> /dev/null
к исправлении ситуации не приводит. А симлинк на реальный service, вида
/lib/systemd/system/<name>.service ->
/lib/systemd/system/<realnamename>.service, приведёт к зависимости на
пакет его содержащий, что не всегда допустимо.

3. В свете предыдущего пункта, исключения зависимости на пакет
содержащий /lib/systemd/system/<realnamename>.service, пакету с
%_initdir/<name> потребуется:

а) обвить /lib/systemd/system/<name>.service как %ghost;

б) иметь тригер, отслеживающий установку/удаление/наличие пакета
содержащего <realnamename>.service и в зависимосте от этого
создающего/удаляющего симлинк <name>.service -> <realnamename>.service.

  В общем, наиболее простой вариант:

1. Симлинк <name>.service -> <realnamename>.service пометить в пакет
содержащий <realnamename>.service.

2. %_initdir/<name>, без <name>.service, в отдельный пакет.

-- 

С уважением. Алексей.



[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 230 bytes --]

  parent reply	other threads:[~2016-02-18 12:49 UTC|newest]

Thread overview: 34+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-01-31 11:25 ` [sisyphus] A: Прошу тестировать доработанные sustemd и dbus (was: Fwd: [devel] A: Прошу пропустить доработанные sustemd и dbus) Aleksey Avdeev
2016-01-31 13:59   ` Serg A. Kotlyarov
2016-01-31 14:07     ` ruslandh
2016-01-31 14:33     ` [sisyphus] A: Прошу тестировать доработанные sustemd и dbus Aleksey Avdeev
2016-01-31 14:49       ` Serg A. Kotlyarov
2016-01-31 22:34       ` Aleksey Avdeev
2016-02-01 15:32         ` Serg A. Kotlyarov
2016-02-01 17:46           ` Alexey Shabalin
2016-02-01 23:16             ` Aleksey Avdeev
2016-02-10 20:41               ` Aleksey Avdeev
2016-02-11  6:06                 ` Aleksey Avdeev
2016-02-15 10:06                   ` Alexey Shabalin
2016-02-15 12:12                     ` Aleksey Avdeev
2016-02-15 12:24                       ` Alexey Shabalin
2016-02-17 11:19                         ` Aleksey Avdeev
2016-02-20 15:32                           ` Aleksey Avdeev
2016-03-06 10:46                             ` Aleksey Avdeev
2016-03-15  9:19                               ` Aleksey Avdeev
2016-02-17 23:26                     ` Dmitry V. Levin
2016-02-18  7:50                       ` Alexey Shabalin
2016-02-18 13:27                         ` Aleksey Avdeev
2016-02-18 15:01                           ` Alexey Shabalin
2016-02-18 15:11                             ` Dmitry V. Levin
2016-02-18 15:16                               ` Alexey Shabalin
2016-02-18 15:22                                 ` Dmitry V. Levin
2016-02-18 19:28                                 ` Aleksey Avdeev
2016-02-18 15:21                         ` Dmitry V. Levin
2016-02-18 19:13                           ` Aleksey Avdeev
2016-02-19  7:34                           ` Sergey V Turchin
2016-02-19 10:06                             ` Aleksey Avdeev
2016-02-18 12:49                       ` Aleksey Avdeev [this message]
2016-02-18 14:55                         ` Alexey Shabalin
2016-02-18 18:51                           ` Aleksey Avdeev
2016-03-23 18:46 ` [sisyphus] [devel] A: Прошу пропустить доработанный dbus (was: A: Прошу пропустить доработанные sustemd и dbus) Aleksey Avdeev

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=56C5BDC1.2030803@solin.spb.ru \
    --to=solo@solin.spb.ru \
    --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