summaryrefslogtreecommitdiff
path: root/reboot-if-no-net-connection.service
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2020-10-10 20:08:55 +0200
committerErich Eckner <git@eckner.net>2020-10-10 20:08:55 +0200
commitfb789e7d52cc67d3f5a3e713a355e121e772ebcb (patch)
tree362526a14dcf4361ec113ed84af5ae1e4f514841 /reboot-if-no-net-connection.service
downloadreboot-if-no-net-connection-fb789e7d52cc67d3f5a3e713a355e121e772ebcb.tar.xz
initial commit
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