* [devel] systemd vs. NM
@ 2011-05-13 14:09 Mykola S. Grechukh
2011-05-13 14:13 ` Mykola S. Grechukh
2011-05-13 14:48 ` Alexey Shabalin
0 siblings, 2 replies; 17+ messages in thread
From: Mykola S. Grechukh @ 2011-05-13 14:09 UTC (permalink / raw)
To: ALT Linux Team development discussions
Здравствуйте,
как-то так получается, что systemd не запускает NetworkManager. И
rpcbind не запускает, а nfs и nfslock пытается.
Как всё это устроено и в каком месте чинить ?
--
Mykola Grechukh
CTO, Satelliz-Ukraine
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: [devel] systemd vs. NM
2011-05-13 14:09 [devel] systemd vs. NM Mykola S. Grechukh
@ 2011-05-13 14:13 ` Mykola S. Grechukh
2011-05-13 15:10 ` Mikhail Efremov
2011-05-13 14:48 ` Alexey Shabalin
1 sibling, 1 reply; 17+ messages in thread
From: Mykola S. Grechukh @ 2011-05-13 14:13 UTC (permalink / raw)
To: ALT Linux Team development discussions
2011/5/13 Mykola S. Grechukh <>:
> Здравствуйте,
>
> как-то так получается, что systemd не запускает NetworkManager. И
> rpcbind не запускает, а nfs и nfslock пытается.
>
> Как всё это устроено и в каком месте чинить ?
Интересно, что NM 0.8.999 запускается при старте. service файл
отличается от 0.8.4 вот настолько:
@@ -1,6 +1,8 @@
[Unit]
Description=Network Manager
After=syslog.target
+Wants=network.target
+Before=network.target
[Service]
Type=dbus
@@ -8,5 +10,5 @@
ExecStart=/usr/sbin/NetworkManager --no-daemon
[Install]
-WantedBy=network.target multi-user.target
+WantedBy=multi-user.target
Alias=dbus-org.freedesktop.NetworkManager.service
--
Mykola Grechukh
CTO, Satelliz-Ukraine
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: [devel] systemd vs. NM
2011-05-13 14:13 ` Mykola S. Grechukh
@ 2011-05-13 15:10 ` Mikhail Efremov
2011-05-13 15:14 ` Mykola S. Grechukh
0 siblings, 1 reply; 17+ messages in thread
From: Mikhail Efremov @ 2011-05-13 15:10 UTC (permalink / raw)
To: devel
On Fri, 13 May 2011 14:13:12 +0000 Mykola S. Grechukh wrote:
> Интересно, что NM 0.8.999 запускается при старте. service файл
> отличается от 0.8.4 вот настолько:
systemd я не использую и проверить не могу.
Я, конечно, могу перетащить это в 0.8. Но в апстриме это изменение
присутствует только для 0.9.
--
WBR, Mikhail Efremov
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: [devel] systemd vs. NM
2011-05-13 15:10 ` Mikhail Efremov
@ 2011-05-13 15:14 ` Mykola S. Grechukh
2011-05-13 15:27 ` Mikhail Efremov
0 siblings, 1 reply; 17+ messages in thread
From: Mykola S. Grechukh @ 2011-05-13 15:14 UTC (permalink / raw)
To: ALT Linux Team development discussions
2011/5/13 Mikhail Efremov <>:
> On Fri, 13 May 2011 14:13:12 +0000 Mykola S. Grechukh wrote:
>> Интересно, что NM 0.8.999 запускается при старте. service файл
>> отличается от 0.8.4 вот настолько:
>
> systemd я не использую и проверить не могу.
> Я, конечно, могу перетащить это в 0.8. Но в апстриме это изменение
> присутствует только для 0.9.
М.б. когда-то работало но перестало в очередной версии systemd. А
апстрим вообще поддерживает ветку 0.8?
Я сейчас пробую собирать ливку с 0.8.4, заменив файл .service. Посмотрим.
--
Mykola Grechukh
CTO, Satelliz-Ukraine
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: [devel] systemd vs. NM
2011-05-13 15:14 ` Mykola S. Grechukh
@ 2011-05-13 15:27 ` Mikhail Efremov
2011-05-13 16:23 ` Mykola S. Grechukh
0 siblings, 1 reply; 17+ messages in thread
From: Mikhail Efremov @ 2011-05-13 15:27 UTC (permalink / raw)
To: devel
On Fri, 13 May 2011 15:14:47 +0000 Mykola S. Grechukh wrote:
> 2011/5/13 Mikhail Efremov <>:
> > On Fri, 13 May 2011 14:13:12 +0000 Mykola S. Grechukh wrote:
> >> Интересно, что NM 0.8.999 запускается при старте. service файл
> >> отличается от 0.8.4 вот настолько:
> >
> > systemd я не использую и проверить не могу.
> > Я, конечно, могу перетащить это в 0.8. Но в апстриме это изменение
> > присутствует только для 0.9.
>
> М.б. когда-то работало но перестало в очередной версии systemd. А
> апстрим вообще поддерживает ветку 0.8?
Да, и пока довольно активно.
> Я сейчас пробую собирать ливку с 0.8.4, заменив файл .service. Посмотрим.
Если поможет, то соберу позже с этим .service для бранчей.
В Сизиф все равно скоро приедет NM-0.9, сейчас собирать туда 0.8 с этим
изменением смысла не вижу.
--
WBR, Mikhail Efremov
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: [devel] systemd vs. NM
2011-05-13 14:09 [devel] systemd vs. NM Mykola S. Grechukh
2011-05-13 14:13 ` Mykola S. Grechukh
@ 2011-05-13 14:48 ` Alexey Shabalin
2011-05-13 14:56 ` Mykola S. Grechukh
1 sibling, 1 reply; 17+ messages in thread
From: Alexey Shabalin @ 2011-05-13 14:48 UTC (permalink / raw)
To: ALT Linux Team development discussions
13 мая 2011 г. 18:09 пользователь Mykola S. Grechukh написал:
> Здравствуйте,
>
> как-то так получается, что systemd не запускает NetworkManager. И
> rpcbind не запускает, а nfs и nfslock пытается.
>
> Как всё это устроено и в каком месте чинить ?
>
Возможно достаточно
chkconfig rpcbind on (с chkconfig из people/shaba/systemd)
или
systemctl enable rpcbind.service
--
Alexey Shabalin
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: [devel] systemd vs. NM
2011-05-13 14:48 ` Alexey Shabalin
@ 2011-05-13 14:56 ` Mykola S. Grechukh
2011-05-13 15:25 ` Alexey Shabalin
0 siblings, 1 reply; 17+ messages in thread
From: Mykola S. Grechukh @ 2011-05-13 14:56 UTC (permalink / raw)
To: ALT Linux Team development discussions
2011/5/13 Alexey Shabalin <>:
> 13 мая 2011 г. 18:09 пользователь Mykola S. Grechukh написал:
>> Здравствуйте,
>>
>> как-то так получается, что systemd не запускает NetworkManager. И
>> rpcbind не запускает, а nfs и nfslock пытается.
>>
>> Как всё это устроено и в каком месте чинить ?
>>
> Возможно достаточно
> chkconfig rpcbind on (с chkconfig из people/shaba/systemd)
> или
> systemctl enable rpcbind.service
Ну дело в том что это ливка, и при сборке таки делается :
eeelive/image-scripts.d/03services:/sbin/chkconfig rpcbind on ||:
--
Mykola Grechukh
CTO, Satelliz-Ukraine
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: [devel] systemd vs. NM
2011-05-13 14:56 ` Mykola S. Grechukh
@ 2011-05-13 15:25 ` Alexey Shabalin
2011-05-13 15:34 ` Mykola S. Grechukh
0 siblings, 1 reply; 17+ messages in thread
From: Alexey Shabalin @ 2011-05-13 15:25 UTC (permalink / raw)
To: ALT Linux Team development discussions
13 мая 2011 г. 18:56 пользователь Mykola S. Grechukh написал:
> 2011/5/13 Alexey Shabalin <>:
>> 13 мая 2011 г. 18:09 пользователь Mykola S. Grechukh написал:
>>> Здравствуйте,
>>>
>>> как-то так получается, что systemd не запускает NetworkManager. И
>>> rpcbind не запускает, а nfs и nfslock пытается.
>>>
>>> Как всё это устроено и в каком месте чинить ?
>>>
>> Возможно достаточно
>> chkconfig rpcbind on (с chkconfig из people/shaba/systemd)
>> или
>> systemctl enable rpcbind.service
>
> Ну дело в том что это ливка, и при сборке таки делается :
>
> eeelive/image-scripts.d/03services:/sbin/chkconfig rpcbind on ||:
А chkconfig из people/shaba/systemd?
--
Alexey Shabalin
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: [devel] systemd vs. NM
2011-05-13 15:25 ` Alexey Shabalin
@ 2011-05-13 15:34 ` Mykola S. Grechukh
2011-05-13 16:24 ` Alexey Shabalin
0 siblings, 1 reply; 17+ messages in thread
From: Mykola S. Grechukh @ 2011-05-13 15:34 UTC (permalink / raw)
To: ALT Linux Team development discussions
2011/5/13 Alexey Shabalin <a.shabalin@gmail.com>:
>>> Возможно достаточно
>>> chkconfig rpcbind on (с chkconfig из people/shaba/systemd)
>>> или
>>> systemctl enable rpcbind.service
>>
>> Ну дело в том что это ливка, и при сборке таки делается :
>>
>> eeelive/image-scripts.d/03services:/sbin/chkconfig rpcbind on ||:
> А chkconfig из people/shaba/systemd?
Да. 1.3.52-alt0.1
А вот если удалить rpcbind.service и acpid.service из
/lib/systemd/system , то запускаются.
--
Mykola Grechukh
CTO, Satelliz-Ukraine
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: [devel] systemd vs. NM
2011-05-13 15:34 ` Mykola S. Grechukh
@ 2011-05-13 16:24 ` Alexey Shabalin
2011-05-13 16:32 ` Mykola S. Grechukh
0 siblings, 1 reply; 17+ messages in thread
From: Alexey Shabalin @ 2011-05-13 16:24 UTC (permalink / raw)
To: ALT Linux Team development discussions
13 мая 2011 г. 19:34 пользователь Mykola S. Grechukh написал:
> 2011/5/13 Alexey Shabalin :
>>>> Возможно достаточно
>>>> chkconfig rpcbind on (с chkconfig из people/shaba/systemd)
>>>> или
>>>> systemctl enable rpcbind.service
>>>
>>> Ну дело в том что это ливка, и при сборке таки делается :
>>>
>>> eeelive/image-scripts.d/03services:/sbin/chkconfig rpcbind on ||:
>> А chkconfig из people/shaba/systemd?
>
> Да. 1.3.52-alt0.1
>
> А вот если удалить rpcbind.service и acpid.service из
> /lib/systemd/system , то запускаются.
Это уже запускаются скрипты из init.d в режиме совместимости.
А это где запускается:
eeelive/image-scripts.d/03services:/sbin/chkconfig rpcbind on ||:
при работающем systemd?
И service и chkconfig проверяют, работает ли systemd и если нет, то
используют SysV.
Хотя всё равно, если сервис включен для SysV, и есть .service для
systemd, то должен стартовать именно .service с помощью systemd.
--
Alexey Shabalin
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: [devel] systemd vs. NM
2011-05-13 16:24 ` Alexey Shabalin
@ 2011-05-13 16:32 ` Mykola S. Grechukh
2011-05-13 16:53 ` Alexey Shabalin
0 siblings, 1 reply; 17+ messages in thread
From: Mykola S. Grechukh @ 2011-05-13 16:32 UTC (permalink / raw)
To: ALT Linux Team development discussions
2011/5/13 Alexey Shabalin <>:
> А это где запускается:
> eeelive/image-scripts.d/03services:/sbin/chkconfig rpcbind on ||:
> при работающем systemd?
Это в хэшере генерация корня для запаковки в live cd. systemd там
естественно не запущен.
.
> И service и chkconfig проверяют, работает ли systemd и если нет, то
> используют SysV.
>
> Хотя всё равно, если сервис включен для SysV, и есть .service для
> systemd, то должен стартовать именно .service с помощью systemd.
Получается вот что. chkconfig acpid в хэшере говорит вот так:
Note: Forwarding request to 'systemctl enable acpid.service'.
ln -s '/lib/systemd/system/acpid.service'
'/etc/systemd/system/multi-user.target.wants/acpid.service'
А chkconfig rpcbind говорит так:
Note: Forwarding request to 'systemctl enable rpcbind.service'.
ln -s '/lib/systemd/system/rpcbind.service'
'/etc/systemd/system/rpcbind.target.wants/rpcbind.service'
При загрузке с этого образа - acpid запускается, rpcbind не запускается.
--
Mykola Grechukh
CTO, Satelliz-Ukraine
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: [devel] systemd vs. NM
2011-05-13 16:32 ` Mykola S. Grechukh
@ 2011-05-13 16:53 ` Alexey Shabalin
2011-05-13 17:25 ` Alexey Shabalin
0 siblings, 1 reply; 17+ messages in thread
From: Alexey Shabalin @ 2011-05-13 16:53 UTC (permalink / raw)
To: ALT Linux Team development discussions
13 мая 2011 г. 20:32 пользователь Mykola S. Grechukh написал:
> 2011/5/13 Alexey Shabalin <>:
>> А это где запускается:
>> eeelive/image-scripts.d/03services:/sbin/chkconfig rpcbind on ||:
>> при работающем systemd?
>
> Это в хэшере генерация корня для запаковки в live cd. systemd там
> естественно не запущен.
> .
>> И service и chkconfig проверяют, работает ли systemd и если нет, то
>> используют SysV.
>>
>> Хотя всё равно, если сервис включен для SysV, и есть .service для
>> systemd, то должен стартовать именно .service с помощью systemd.
>
> Получается вот что. chkconfig acpid в хэшере говорит вот так:
>
> Note: Forwarding request to 'systemctl enable acpid.service'.
> ln -s '/lib/systemd/system/acpid.service'
> '/etc/systemd/system/multi-user.target.wants/acpid.service'
>
> А chkconfig rpcbind говорит так:
>
> Note: Forwarding request to 'systemctl enable rpcbind.service'.
> ln -s '/lib/systemd/system/rpcbind.service'
> '/etc/systemd/system/rpcbind.target.wants/rpcbind.service'
>
> При загрузке с этого образа - acpid запускается, rpcbind не запускается.
:) выглядит правильно :)
acpid ставится в multi-user.target (и видимо он используется как цель
для загрузки) и стартует,
а rpcbind ставится в rpcbind.target, и на этот таргет нет зависимости
у multi-user.target.
Я посмотрю, что лучше сделать.
--
Alexey Shabalin
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: [devel] systemd vs. NM
2011-05-13 16:53 ` Alexey Shabalin
@ 2011-05-13 17:25 ` Alexey Shabalin
2011-05-13 17:33 ` Денис Смирнов
2011-05-13 23:38 ` Alexey Shabalin
0 siblings, 2 replies; 17+ messages in thread
From: Alexey Shabalin @ 2011-05-13 17:25 UTC (permalink / raw)
To: ALT Linux Team development discussions
>> Получается вот что. chkconfig acpid в хэшере говорит вот так:
>>
>> Note: Forwarding request to 'systemctl enable acpid.service'.
>> ln -s '/lib/systemd/system/acpid.service'
>> '/etc/systemd/system/multi-user.target.wants/acpid.service'
>>
>> А chkconfig rpcbind говорит так:
>>
>> Note: Forwarding request to 'systemctl enable rpcbind.service'.
>> ln -s '/lib/systemd/system/rpcbind.service'
>> '/etc/systemd/system/rpcbind.target.wants/rpcbind.service'
>>
>> При загрузке с этого образа - acpid запускается, rpcbind не запускается.
>
> :) выглядит правильно :)
> acpid ставится в multi-user.target (и видимо он используется как цель
> для загрузки) и стартует,
> а rpcbind ставится в rpcbind.target, и на этот таргет нет зависимости
> у multi-user.target.
> Я посмотрю, что лучше сделать.
Вариантов пара:
1) добавить .socket файл по подобию
http://0pointer.de/public/systemd-units/rpcbind.socket
тогда порт 111 будет слушать systemd и при обращении на него будет
стартовать сервис (напоминает xinetd). Вот только как прикрутить наш
control к этому - не знаю.
2) в WantedBy добавить multi-user.target (запуллить в этот таргет).
Вот только правильно ли это? может лучше network.target?
3) можно целиком rpcbind.target запуллить в multi-user.target(или в
network.target). Опять же не знаю, насколько это правильно.
--
Alexey Shabalin
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: [devel] systemd vs. NM
2011-05-13 17:25 ` Alexey Shabalin
@ 2011-05-13 17:33 ` Денис Смирнов
2011-05-13 17:35 ` Mykola S. Grechukh
2011-05-13 23:38 ` Alexey Shabalin
1 sibling, 1 reply; 17+ messages in thread
From: Денис Смирнов @ 2011-05-13 17:33 UTC (permalink / raw)
To: ALT Linux Team development discussions
[-- Attachment #1: Type: text/plain, Size: 406 bytes --]
On Fri, May 13, 2011 at 09:25:34PM +0400, Alexey Shabalin wrote:
AS> 2) в WantedBy добавить multi-user.target (запуллить в этот таргет).
AS> Вот только правильно ли это? может лучше network.target?
А насколько все это правильно для тех, кто вообще не пользуется NFS? ;)
--
С уважением, Денис
http://mithraen.ru/
----------------------------------------------------------------------------
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 198 bytes --]
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: [devel] systemd vs. NM
2011-05-13 17:33 ` Денис Смирнов
@ 2011-05-13 17:35 ` Mykola S. Grechukh
0 siblings, 0 replies; 17+ messages in thread
From: Mykola S. Grechukh @ 2011-05-13 17:35 UTC (permalink / raw)
To: ALT Linux Team development discussions
2011/5/13 Денис Смирнов <mithraen@>:
> On Fri, May 13, 2011 at 09:25:34PM +0400, Alexey Shabalin wrote:
>
> AS> 2) в WantedBy добавить multi-user.target (запуллить в этот таргет).
> AS> Вот только правильно ли это? может лучше network.target?
>
> А насколько все это правильно для тех, кто вообще не пользуется NFS? ;)
Так отож, что на самом деле ещё лучше было бы сделать nfs.service и
nfslock.service требующие rpcbind - но как _их_ запуск обеспечить? С
тупым дубовым init.d я делаю chkconfig nfs on/off, а тут...
--
Mykola Grechukh
CTO, Satelliz-Ukraine
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: [devel] systemd vs. NM
2011-05-13 17:25 ` Alexey Shabalin
2011-05-13 17:33 ` Денис Смирнов
@ 2011-05-13 23:38 ` Alexey Shabalin
1 sibling, 0 replies; 17+ messages in thread
From: Alexey Shabalin @ 2011-05-13 23:38 UTC (permalink / raw)
To: ALT Linux Team development discussions
13 мая 2011 г. 21:25 пользователь Alexey Shabalin написал:
>>> Получается вот что. chkconfig acpid в хэшере говорит вот так:
>>>
>>> Note: Forwarding request to 'systemctl enable acpid.service'.
>>> ln -s '/lib/systemd/system/acpid.service'
>>> '/etc/systemd/system/multi-user.target.wants/acpid.service'
>>>
>>> А chkconfig rpcbind говорит так:
>>>
>>> Note: Forwarding request to 'systemctl enable rpcbind.service'.
>>> ln -s '/lib/systemd/system/rpcbind.service'
>>> '/etc/systemd/system/rpcbind.target.wants/rpcbind.service'
>>>
>>> При загрузке с этого образа - acpid запускается, rpcbind не запускается.
>>
>> :) выглядит правильно :)
>> acpid ставится в multi-user.target (и видимо он используется как цель
>> для загрузки) и стартует,
>> а rpcbind ставится в rpcbind.target, и на этот таргет нет зависимости
>> у multi-user.target.
>> Я посмотрю, что лучше сделать.
> Вариантов пара:
> 1) добавить .socket файл по подобию
> http://0pointer.de/public/systemd-units/rpcbind.socket
> тогда порт 111 будет слушать systemd и при обращении на него будет
> стартовать сервис (напоминает xinetd). Вот только как прикрутить наш
> control к этому - не знаю.
>
> 2) в WantedBy добавить multi-user.target (запуллить в этот таргет).
> Вот только правильно ли это? может лучше network.target?
>
> 3) можно целиком rpcbind.target запуллить в multi-user.target(или в
> network.target). Опять же не знаю, насколько это правильно.
Выбрал 3 вариант.
Отправил в сизиф новую сборку systemd. Пробуйте с ней.
--
Alexey Shabalin
^ permalink raw reply [flat|nested] 17+ messages in thread
end of thread, other threads:[~2011-05-13 23:38 UTC | newest]
Thread overview: 17+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-05-13 14:09 [devel] systemd vs. NM Mykola S. Grechukh
2011-05-13 14:13 ` Mykola S. Grechukh
2011-05-13 15:10 ` Mikhail Efremov
2011-05-13 15:14 ` Mykola S. Grechukh
2011-05-13 15:27 ` Mikhail Efremov
2011-05-13 16:23 ` Mykola S. Grechukh
2011-05-13 14:48 ` Alexey Shabalin
2011-05-13 14:56 ` Mykola S. Grechukh
2011-05-13 15:25 ` Alexey Shabalin
2011-05-13 15:34 ` Mykola S. Grechukh
2011-05-13 16:24 ` Alexey Shabalin
2011-05-13 16:32 ` Mykola S. Grechukh
2011-05-13 16:53 ` Alexey Shabalin
2011-05-13 17:25 ` Alexey Shabalin
2011-05-13 17:33 ` Денис Смирнов
2011-05-13 17:35 ` Mykola S. Grechukh
2011-05-13 23:38 ` Alexey Shabalin
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