man/Makefile
init/Makefile
init/systemd/Makefile
+ init/systemd-swanctl/Makefile
src/Makefile
src/include/Makefile
src/libstrongswan/Makefile
if USE_LEGACY_SYSTEMD
SUBDIRS += systemd
endif
+
+if USE_SYSTEMD
+if USE_SWANCTL
+ SUBDIRS += systemd-swanctl
+endif
+endif
--- /dev/null
+strongswan-swanctl.service
--- /dev/null
+
+EXTRA_DIST = strongswan-swanctl.service.in
+CLEANFILES = strongswan-swanctl.service
+
+systemdsystemunit_DATA = strongswan-swanctl.service
+
+strongswan-swanctl.service : strongswan-swanctl.service.in
+ $(AM_V_GEN) \
+ sed \
+ -e "s:@SBINDIR@:$(sbindir):" \
+ $(srcdir)/$@.in > $@
--- /dev/null
+[Unit]
+Description=strongSwan IPsec IKEv1/IKEv2 daemon using swanctl
+After=network.target
+
+[Service]
+Type=notify
+ExecStart=@SBINDIR@/charon-systemd
+ExecStartPost=@SBINDIR@/swanctl --load-all --noprompt
+ExecReload=@SBINDIR@/swanctl --reload