Skip to content

Instantly share code, notes, and snippets.

@programminghoch10
Created June 26, 2026 11:16
Show Gist options
  • Select an option

  • Save programminghoch10/3eb1cd346ee28584fbc5225b3405b4e3 to your computer and use it in GitHub Desktop.

Select an option

Save programminghoch10/3eb1cd346ee28584fbc5225b3405b4e3 to your computer and use it in GitHub Desktop.
# Stub service that depends on network-online.target but does nothing.
# We want this target to become active,
# so that the userspace podman-user-wait-network-online.service activates.
# place into /etc/systemd/system/network-online-stub.service
# then enmable with systemctl daemon-reload; systemctl enable network-online-stub.service
[Unit]
Description=Stub service that waits for network-online.target
Wants=network-online.target
After=network-online.target
# The Requires= line would make this unit fail if the network target fails.
# Requires=network-online.target
[Service]
Type=oneshot
ExecStart=true
[Install]
WantedBy=multi-user.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment