Merge tag 'v2.3.6' into testing
[gpl/argeo-freed.git] / lib / systemd / system / freed-onsuspend.service
diff --git a/lib/systemd/system/freed-onsuspend.service b/lib/systemd/system/freed-onsuspend.service
new file mode 100644 (file)
index 0000000..47afcc2
--- /dev/null
@@ -0,0 +1,11 @@
+[Unit]
+Description=On suspend actions
+Before=sleep.target
+
+[Service]
+Type=oneshot
+ExecStart=/usr/bin/systemctl stop ipsec
+ExecStartPost=/usr/bin/sleep 5
+
+[Install]
+WantedBy=sleep.target