Some of the services on my Raspberry Pi (~ Debian) depend on the availability of Internet (especially ntpd
, for cryptic reasons). Specifically, the availability of a network device or a link being up is not enough.
When looking at /etc/init.d/ntp
I see
### BEGIN INIT INFO
# Provides: ntp
# Required-Start: $network $remote_fs $syslog
# Required-Stop: $network $remote_fs $syslog
# Default-Start: 2 3 4 5
# Default-Stop:
# Short-Description: Start NTP daemon
### END INIT INFO
which I believe means that ntp
depends on $network
to be able to start. I found a reference in /etc/insserv.conf
but it does not say much about what is actually required to set it up:
#
# Low level networking (ethernet card)
#
$network +networking +ifupdown
Q1: How exactly is $network
defined via the +networking +ifupdown
elements? (so that I can modify it and try to reach an actual host before declaring the network as 'up')
Q2: If the network prerequisite is not met will the ntp
start be delayed or will it fail?