1 2 3 4 5 6 7 8 9 10 11 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