Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Wait Online

npt wait-online waits for nipartd to configure the network and reach an online state. Used by nipart-wait-online.service for systemd network-online.target.

Configuration

wait-online:
  timeout-sec: 30
  conditions:
  - gateway4
  - gateway6

wait-online does not use partial updating - if defined, it overrides any previous configuration. To keep existing settings, use the previously saved config.

Behavior

  • When all conditions are met, the daemon considers the network online and npt wait-online exits with code 0.
  • On timeout, npt wait-online exits with code 124 (matching /usr/bin/timeout).
  • Once the daemon reaches the online state, it stops tracking subsequent network changes and does not re-check whether the conditions are still met.

Valid Conditions

ConditionDescription
saved-config-appliedAll saved configs applied (excl. conditional act.)
gatewayIPv4 or IPv6 gateway added
gateway4IPv4 gateway added
gateway6IPv6 gateway added