[strongSwan-dev] strongswan systemd service patch

Avesh Agarwal avesh.ncsu at gmail.com
Mon Dec 8 19:28:31 CET 2014


Hi,

The following patch is for old systemd support in strongswan. It basically
does 2 things:

1. changes "After=" target to network.target from syslog.target .
2. Removes "StandardOuput= ", as it seems redundant because by default it
is set to "journal" which in turn sends everything to "syslog" anyway.

diff --git a/init/systemd/strongswan.service.in b/init/systemd/
strongswan.service.in
index 608078b..facf30e 100644
--- a/init/systemd/strongswan.service.in
+++ b/init/systemd/strongswan.service.in
@@ -1,10 +1,9 @@
 [Unit]
 Description=strongSwan IPsec IKEv1/IKEv2 daemon using ipsec.conf
-After=syslog.target
+After=network.target

 [Service]
 ExecStart=@SBINDIR@/@IPSEC_SCRIPT@ start --nofork
-StandardOutput=syslog

 [Install]
 WantedBy=multi-user.target

Thanks and Regards
Avesh
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.strongswan.org/pipermail/dev/attachments/20141208/4dfb3303/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: strongswan-systemd-service.patch
Type: text/x-patch
Size: 459 bytes
Desc: not available
URL: <http://lists.strongswan.org/pipermail/dev/attachments/20141208/4dfb3303/attachment.bin>


More information about the Dev mailing list