(Translated by https://www.hiragana.jp/)
GitHub - vimusov/wint: An utility which waits for Internet connection being established.
Skip to content
/ wint Public

An utility which waits for Internet connection being established.

Notifications You must be signed in to change notification settings

vimusov/wint

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

What?

An utility which waits for Internet connection being established.

Why?

To make systemd units which needs Internet access to feel better.

How?

The utility pings some public DNS servers and quit after 3 success attempts. It will fail with exit code 1 if there is no Internet connection established in 5 minutes.

Build

Go >= 1.20 is required. Run just.

Usage

  1. Enable the utility to start: systemctl enable --now wint
  2. Put these lines into all units which needs an established Internet connection to run:
[Unit]
After=wint.service

License

GPL.

About

An utility which waits for Internet connection being established.

Topics

Resources

Stars

Watchers

Forks