Skip to content

Instantly share code, notes, and snippets.

@daveol
Last active July 2, 2017 21:50
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save daveol/2f9668425129c0573b6c75f573de542f to your computer and use it in GitHub Desktop.
Save daveol/2f9668425129c0573b6c75f573de542f to your computer and use it in GitHub Desktop.
[Unit]
Description=Check online
After=network.target
Before=network-online.target
[Service]
Type=oneshot
ExecStart=/usr/bin/fping %i
[Install]
WantedBy=network-online.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment