From: Leonid Krivoshein <klark.devel@gmail.com>
To: devel@lists.altlinux.org
Subject: Re: [devel] firsttime под systemd
Date: Fri, 20 Mar 2020 16:11:20 +0300
Message-ID: <09c11ded-82b6-a99c-66a2-f51f79a32729@gmail.com> (raw)
In-Reply-To: <00f6b3a4-53b4-8a63-c8c6-0dac61ddf2b6@altlinux.org>
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.
prev parent reply other threads:[~2020-03-20 13:11 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-03-20 6:58 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 [this message]
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=09c11ded-82b6-a99c-66a2-f51f79a32729@gmail.com \
--to=klark.devel@gmail.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