summaryrefslogtreecommitdiff
path: root/libre/ipsec-tools-libre/ipsec.service
diff options
context:
space:
mode:
Diffstat (limited to 'libre/ipsec-tools-libre/ipsec.service')
-rw-r--r--libre/ipsec-tools-libre/ipsec.service12
1 files changed, 12 insertions, 0 deletions
diff --git a/libre/ipsec-tools-libre/ipsec.service b/libre/ipsec-tools-libre/ipsec.service
new file mode 100644
index 000000000..483a5b58d
--- /dev/null
+++ b/libre/ipsec-tools-libre/ipsec.service
@@ -0,0 +1,12 @@
+[Unit]
+Description=Load IPSec Security Policy Database
+After=syslog.target network.target
+
+[Service]
+Type=oneshot
+RemainAfterExit=true
+ExecStart=/usr/bin/setkey -f /etc/ipsec.conf
+ExecStop=/usr/bin/setkey -F -P ; /usr/bin/setkey -F
+
+[Install]
+WantedBy=multi-user.target