* [devel] firsttime под systemd
@ 2020-03-20 6:58 Andrey Cherepanov
2020-03-20 7:02 ` Denis Medvedev
2020-03-20 13:11 ` Leonid Krivoshein
0 siblings, 2 replies; 5+ messages in thread
From: Andrey Cherepanov @ 2020-03-20 6:58 UTC (permalink / raw)
To: ALT Linux Team development discussions
При использовании firsttime (запускаемой через /etc/rc5.d/S99local) на
системах под systemd мы не имеем сети в скриптах.
Вопрос: как правильно решить эту ситуацию?
--
Andrey Cherepanov
cas@altlinux.org
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [devel] firsttime под systemd
2020-03-20 6:58 [devel] firsttime под systemd Andrey Cherepanov
@ 2020-03-20 7:02 ` Denis Medvedev
2020-03-20 7:07 ` Andrey Cherepanov
2020-03-20 13:11 ` Leonid Krivoshein
1 sibling, 1 reply; 5+ messages in thread
From: Denis Medvedev @ 2020-03-20 7:02 UTC (permalink / raw)
To: ALT Linux Team development discussions, Andrey Cherepanov
20.03.2020 09:58, Andrey Cherepanov пишет:
> При использовании firsttime (запускаемой через /etc/rc5.d/S99local) на
> системах под systemd мы не имеем сети в скриптах.
>
> Вопрос: как правильно решить эту ситуацию?
>
Вот мнение авторов systemd по поводу запуска _сервисов_ (не скриптов)
после старта сети.
https://www.freedesktop.org/wiki/Software/systemd/NetworkTarget/
Может, поможет?
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [devel] firsttime под systemd
2020-03-20 6:58 [devel] firsttime под systemd Andrey Cherepanov
2020-03-20 7:02 ` Denis Medvedev
@ 2020-03-20 13:11 ` Leonid Krivoshein
1 sibling, 0 replies; 5+ messages in thread
From: Leonid Krivoshein @ 2020-03-20 13:11 UTC (permalink / raw)
To: devel
20.03.2020 9:58, Andrey Cherepanov пишет:
> При использовании firsttime (запускаемой через /etc/rc5.d/S99local) на
> системах под systemd мы не имеем сети в скриптах.
>
> Вопрос: как правильно решить эту ситуацию?
>
В последнее время я отказался от использования firsttime из-за многих
его ограничений, раньше справлялся хаками в стиле переноса на tmpfs,
форков с nohup, итп. Разовый запуск через cron работает без этих
ограничений. А как правильно -- не знаю. Возможно, нужен
firsttime.service. От него не должно ничего зависеть. Он может работать
очень долго и должен жить где-то в фоне.
echo "@reboot root /opt/postinstall.sh" > /etc/cron.d/postinstall
--
Best regards,
Leonid Krivoshein.
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2020-03-20 13:11 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-03-20 6:58 [devel] firsttime под systemd Andrey Cherepanov
2020-03-20 7:02 ` Denis Medvedev
2020-03-20 7:07 ` Andrey Cherepanov
2020-03-20 7:11 ` Denis Medvedev
2020-03-20 13:11 ` Leonid Krivoshein
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