* [Comm] Автозапуск systemd --user
@ 2014-10-08 17:35 Константин
2014-10-08 19:01 ` Michael Shigorin
0 siblings, 1 reply; 3+ messages in thread
From: Константин @ 2014-10-08 17:35 UTC (permalink / raw)
To: community
Здравствуйте.
Возникла следующая проблема с systemd. Требуется запустить сервис при логине пользователя в графический интерфейс.
Создал файл сервиса, положил его в
/home/username/.config/systemd/user/servicename.service, сделал зависимым от graphical.target
Однако выполнение systemctl --user start servicename.service
Приводит к
Failed to issue method call: Process /bin/false exited with status 1
Проблема решается предварительным запуском systemd для пользователя: systemd --user &
У меня следующий вопрос, как заставить systemd --user запускаться при входе пользователя в систему?
Спасибо.
Константин.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [Comm] Автозапуск systemd --user
2014-10-08 17:35 [Comm] Автозапуск systemd --user Константин
@ 2014-10-08 19:01 ` Michael Shigorin
2014-10-09 17:13 ` Константин
0 siblings, 1 reply; 3+ messages in thread
From: Michael Shigorin @ 2014-10-08 19:01 UTC (permalink / raw)
To: community
On Wed, Oct 08, 2014 at 09:35:12PM +0400, Константин wrote:
> У меня следующий вопрос, как заставить systemd --user
> запускаться при входе пользователя в систему?
Добавить в ~/.xsession.d/ либо /etc/X11/xinit.d/ новым файлом
с правами на исполнение, судя по /etc/X11/Xsession?
--
---- WBR, Michael Shigorin / http://altlinux.org
------ http://opennet.ru / http://anna-news.info
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [Comm] Автозапуск systemd --user
2014-10-08 19:01 ` Michael Shigorin
@ 2014-10-09 17:13 ` Константин
0 siblings, 0 replies; 3+ messages in thread
From: Константин @ 2014-10-09 17:13 UTC (permalink / raw)
To: ALT Linux Community general discussions
08.10.2014, 23:01, "Michael Shigorin" <mike@altlinux.org>:
> Добавить в ~/.xsession.d/ либо /etc/X11/xinit.d/ новым файлом
> с правами на исполнение, судя по /etc/X11/Xsession?
Михаил, больше вам спасибо, ваш совет очень помог.
Константин.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2014-10-09 17:13 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-10-08 17:35 [Comm] Автозапуск systemd --user Константин
2014-10-08 19:01 ` Michael Shigorin
2014-10-09 17:13 ` Константин
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