Re: Delaying Autostart

Liste des GroupesRevenir à cs raspberry-pi 
Sujet : Re: Delaying Autostart
De : jornws200602 (at) *nospam* xs4all.nl (Oscar)
Groupes : comp.sys.raspberry-pi
Date : 03. Jun 2025, 20:33:41
Autres entêtes
Organisation : A butterfly in Tokio
Message-ID : <101niml$7k6m$2@dont-email.me>
References : 1 2 3 4
User-Agent : trn 4.0-test77 (Sep 1, 2010)
In article <lKm*Ch8dA@news.chiark.greenend.org.uk>,
Theo  <theom+news@chiark.greenend.org.uk> wrote:
I was going to suggest something similar like that too.  It is worth
checking what the webserver is giving you - some services give a generic
'please wait while I start up' web page which may not be what you want.
Maybe you need to ask for a specific page and count a redirect (to the
'please wait') page as a failure.

In my use case this was enough. You can also direct curl output to grep
and use that as an indicator of your device's desired state.


Why waste a curl call when ping 8.8.8.8 would work with less overhead?
The purpose is to test a specific service *on this machine* has started up,
not generic internet connectivity.

Yeah. And curl is not *that* expensive to run. Maybe even less expensive
than ping, as it does not have the setuid overhead. But who's counting
clock cycles anyway?
--
[J|O|R] <- .signature.gz

Date Sujet#  Auteur
1 Jun 25 * Delaying Autostart13DrStevenStrange
1 Jun 25 +* Re: Delaying Autostart2Theo
1 Jun 25 i`- Re: Delaying Autostart1DrStevenStrange
2 Jun 25 `* Re: Delaying Autostart10Lawrence D'Oliveiro
3 Jun 25  `* Re: Delaying Autostart9Oscar
3 Jun 25   `* Re: Delaying Autostart8Chris Elvidge
3 Jun 25    +* Re: Delaying Autostart3Theo
3 Jun 25    i`* Re: Delaying Autostart2Oscar
3 Jun 25    i `- Re: Delaying Autostart1Oscar
3 Jun 25    +* Re: Delaying Autostart3The Natural Philosopher
3 Jun 25    i`* Re: Delaying Autostart2Oscar
4 Jun 25    i `- Re: Delaying Autostart1The Natural Philosopher
3 Jun 25    `- Re: Delaying Autostart1Oscar

Haut de la page

Les messages affichés proviennent d'usenet.

NewsPortal