diff options
Diffstat (limited to 'dns-ready-check.service')
-rw-r--r-- | dns-ready-check.service | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/dns-ready-check.service b/dns-ready-check.service new file mode 100644 index 0000000..a945739 --- /dev/null +++ b/dns-ready-check.service @@ -0,0 +1,12 @@ +[Unit] +Description=Check if Domain Name System resolver is ready +DefaultDependencies=no +Requires=network-online.target +After=network-online.target + +[Service] +Type=oneshot +ExecStart=/usr/bin/host example.com +Restart=on-failure +RestartSec=1 +StandardOutput=null |