summaryrefslogtreecommitdiffstats
path: root/roles/ethtool/templates/wol.service.j2
diff options
context:
space:
mode:
Diffstat (limited to 'roles/ethtool/templates/wol.service.j2')
-rw-r--r--roles/ethtool/templates/wol.service.j211
1 files changed, 11 insertions, 0 deletions
diff --git a/roles/ethtool/templates/wol.service.j2 b/roles/ethtool/templates/wol.service.j2
new file mode 100644
index 00000000..0d11f2af
--- /dev/null
+++ b/roles/ethtool/templates/wol.service.j2
@@ -0,0 +1,11 @@
+[Unit]
+Description=Enable Wake-on-LAN on {{ ethtool_wol_interface }}
+After=network.target
+
+[Service]
+Type=oneshot
+ExecStart=/usr/sbin/ethtool -s {{ ethtool_wol_interface }} wol g
+RemainAfterExit=yes
+
+[Install]
+WantedBy=multi-user.target