ALT Linux Team development discussions
 help / color / mirror / Atom feed
From: Anton Farygin <rider@altlinux.com>
To: devel@lists.altlinux.org
Subject: Re: [devel] systemd user-session-units
Date: Tue, 09 Dec 2014 23:16:53 +0300
Message-ID: <548758B5.6010405@altlinux.com> (raw)
In-Reply-To: <20141209200151.GA27954@mw.mithraen.ru>

On 09.12.2014 23:01, Денис Смирнов wrote:
> On Tue, Dec 09, 2014 at 01:54:01PM +0300, Anton Farygin wrote:
>
>>> а дальше спокойно юзать его под юзверем. У меня на машине именно так
>>> сейчас запускаются всякие dropbox'ы и fetchmail'ы.
>> Почему-то это у меня не срабатывает. Надо какие-то изменения в нашем
>> systemd ?
>
> Так, у тебя p7 или Сизиф? Я эти эксперименты на сизифном systemd делал.

Сизиф.

>
> Можешь показать что у тебя при этом в логах -- как именно не работает?

Доберусь покажу.



>
> И я ошибся, надо использовать uid а не username. Т.е., например:
>
> systemctl start user-emStpdFTA31DcWalurthmA@public.gmane.org

Ой, а это что за ужас ?

>
>>> Только вот, думаю, в итоге скорее создам соответствующие dropbox@.service,
>>> fetchmail@.service и т.д., и буду поднимать их системным systemd. Возможно
>>> дл твоей задачи с devmon это будет удобнее.
>> Я честно не понял как ты это запускаешь - у меня ругается на отсутствие
>> devmon-wMIoqp+mPR8c5CkaFG5UGg@public.gmane.org
>
> Покажи свой devmon@.service
> Его надо писать как темплейт.
>
> Вот пример, как я делал для fetchmail (правда не помню, это уже
> проверенная версия или нет):
>
> [Unit]
> Description=Fetchmail
> Requires=network-online.target local-fs.target
>
> [Service]
> Type=simple
> WorkingDirectory=/home/%I
> User=%I
> PAMName=system-auth
> ExecStart=/bin/sh -l -c 'exec /usr/bin/fetchmail -N'
>
> [Install]
> WantedBy=default.target

Да, %I есть.

https://github.com/IgnorantGuru/udevil/blob/master/etc/systemd/devmon%40.service


>
>>> mnt это обертка над ним (и hmount/pmount, если нет udisksctl). Оно
>>> удобнее.
>> Посмотри devmon, там тоже есть обёртка на шелле.
>
> Гляну, спасибо.


сорри, devmon на шелле, а обёртка udevl на C.
https://github.com/IgnorantGuru/udevil/tree/master/src



  reply	other threads:[~2014-12-09 20:16 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-12-05 18:15 Anton Farygin
2014-12-05 19:16 ` Денис Смирнов
2014-12-05 20:07   ` Anton Farygin
2014-12-05 22:30     ` Денис Смирнов
2014-12-06 12:19       ` Anton Farygin
2014-12-06 16:03         ` Денис Смирнов
2014-12-09 10:54           ` Anton Farygin
2014-12-09 20:01             ` Денис Смирнов
2014-12-09 20:16               ` Anton Farygin [this message]
2014-12-09 22:08                 ` Денис Смирнов
2014-12-05 22:35 ` Alexey Shabalin
2014-12-06 12:19   ` Anton Farygin

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=548758B5.6010405@altlinux.com \
    --to=rider@altlinux.com \
    --cc=devel@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 Team development discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/devel/0 devel/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 devel devel/ http://lore.altlinux.org/devel \
		devel@altlinux.org devel@altlinux.ru devel@lists.altlinux.org devel@lists.altlinux.ru devel@linux.iplabs.ru mandrake-russian@linuxteam.iplabs.ru sisyphus@linuxteam.iplabs.ru
	public-inbox-index devel

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


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