summaryrefslogtreecommitdiff
path: root/reboot-if-no-net-connection.service
diff options
context:
space:
mode:
Diffstat (limited to 'reboot-if-no-net-connection.service')
-rw-r--r--reboot-if-no-net-connection.service7
1 files changed, 7 insertions, 0 deletions
diff --git a/reboot-if-no-net-connection.service b/reboot-if-no-net-connection.service
new file mode 100644
index 0000000..cbc0f06
--- /dev/null
+++ b/reboot-if-no-net-connection.service
@@ -0,0 +1,7 @@
+[Unit]
+Description=check net connectivity - reboot in case of error
+After=network-online.target
+
+[Service]
+Type=oneshot
+ExecStart=/usr/bin/reboot-if-no-net-connection