ALT Linux Community general discussions
 help / color / mirror / Atom feed
From: "Denis G. Samsonenko" <d.g.samsonenko@gmail.com>
To: ALT Linux Community general discussions <community@lists.altlinux.org>
Subject: Re: [Comm] sisyphus-mirror
Date: Wed, 10 Jun 2020 23:52:48 +0700
Message-ID: <CAFE-3XY9S81hX7yhDwJNax2NczpBaa_m-u=BU-AokLPfCij+-w@mail.gmail.com> (raw)
In-Reply-To: <1afcccb0-e8d6-4f02-4bf4-85781f73bd98@etersoft.ru>

Вечер добрый!

>   Использование KillUserProcesses=no - это глобально, для всех. Возможно
> это не то, что требуется.
>   Есть ещё #KillExcludeUsers=root  т.е. можно перечислить users процессы
> которых не будут убиваться.
> Либо как предложили в другом письме, если нужно чтобы не убивалась
> конкретная сессия (программа), то запускать через systemd-run --scope xxx

Запуск "systemd-run --scope sisyphus-mirror " не помогает.

Всё равно при выходе, и потом повторном входе не наблюдаю процессов
sisyphus-mirror, а в его логе получаю:

rsync error: received SIGINT, SIGTERM, or SIGHUP (code 20) at
rsync.c(642) [generator=3.1.3]
rsync error: received SIGINT, SIGTERM, or SIGHUP (code 20) at
io.c(504) [receiver=3.1.3]
rsync: [receiver] write error: Broken pipe (32)

А вот если выставить KillUserProcesses=no, то тогда sisyphus-mirror
переживает вылоговывание и выход из ssh. В его логе появляется

rsync: [receiver] write error: Broken pipe (32)

Но процессы rsync в фоне работают, и лог нормализуется, пакеты скачиваются.

-- 
Всего доброго,

Денис.

  reply	other threads:[~2020-06-10 16:52 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-06-10 11:12 Denis G. Samsonenko
2020-06-10 11:19 ` Pavel Vainerman
2020-06-10 11:29   ` Антон Мидюков
2020-06-10 13:33   ` Павел Исопенко
2020-06-10 13:37     ` Pavel Vainerman
2020-06-10 16:52       ` Denis G. Samsonenko [this message]
2020-06-10 18:45         ` Vladimir D. Seleznev
2020-06-11  3:45           ` Denis G. Samsonenko
2020-06-11 12:41             ` [Comm] systemd-run Failed to create bus connection (Was: sisyphus-mirror) Vladimir D. Seleznev
2020-06-11 15:26               ` Denis G. Samsonenko
2020-06-10 11:19 ` [Comm] sisyphus-mirror Антон Мидюков
2020-06-10 11:21   ` Такасеев Алексей Геннадиевич
2020-06-10 11:39 ` Павел Исопенко
2020-06-10 12:16   ` Andrey Savchenko
2020-06-10 12:27 ` Vladimir D. Seleznev

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='CAFE-3XY9S81hX7yhDwJNax2NczpBaa_m-u=BU-AokLPfCij+-w@mail.gmail.com' \
    --to=d.g.samsonenko@gmail.com \
    --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