16 Commits

Author SHA1 Message Date
Tobias Brunner
523067e6db init: Only install legacy service unit if starter/stroke is enabled
Closes strongswan/strongswan#2722
2025-04-14 11:54:42 +02:00
Matteo Carnelos
bed04baf21 init: Add Wants= dependencies to systemd units
If no other units have dependencies on network-online.target or
syslog.target they might not get initialized resulting in a possibly
non-ideal startup order.

Closes strongswan/strongswan#2279
2024-08-06 15:16:30 +02:00
Mingli Yu
a6cd662eed init: Remove obsolete StandardOutput setting from legacy systemd unit
The standard output value "syslog" was deprecated for a while and did fall
back to "journal". It causes a warning since systemd version 246 [1].

By removing the setting it will default to DefaultStandardOutput, which
defaults to "journal".

[1] https://github.com/systemd/systemd/blob/master/NEWS#L202

Closes strongswan/strongswan#181.
2020-09-30 12:51:08 +02:00
Tobias Brunner
1815c1de52 init: Rename systemd units
Use strongswan-starter for the legacy unit and simply strongswan for the
modern one (strongswan-swanctl is configured as alias, which should
cause the installation of symlinks when the service is enabled via
systemctl).
2019-04-24 13:57:48 +02:00
Martin Willi
39bc437771 init: Reload configurations/credentials as well during systemctl reload 2018-08-31 16:57:48 +02:00
Tobias Brunner
014737dd54 init: Let systemd restart daemons if they get terminated unexpectedly
Fixes #2205.
2017-01-25 15:10:57 +01:00
Tobias Brunner
262bff8bd0 init: Depend on network-online.target instead of network.target in systemd units
This makes sure the network is "up" before connections are
loaded/initiated.

Fixes #2205.
2017-01-25 15:10:50 +01:00
Chris Patterson
67cd3fdce7 strongswan-swanctl.service.in: Match install used by strongswan.service
Signed-off-by: Chris Patterson <pattersonc@ainfosec.com>

Closes strongswan/strongswan#25.
2015-12-21 12:02:31 +01:00
Tobias Brunner
268d029c15 init: Make sure basic networking is up in systemd unit
Connections with auto=route might otherwise not work.

References #1188.
2015-11-13 10:20:11 +01:00
Romain Francoise
f5db98c038 init: Don't build/install legacy systemd service if charon isn't built
If the user configures the build to only include charon-systemd the
"legacy" systemd service isn't useful, so skip its generation and
installation.
2015-05-04 13:25:30 +02:00
Martin Willi
a3d03b4c71 init: Update starter systemd service to distinguish it from strongswan-swanctl 2014-09-22 14:19:38 +02:00
Martin Willi
0097141858 init: Provide a service file for charon-systemd using swanctl 2014-09-22 14:19:38 +02:00
Martin Willi
73ed38e74f systemd: Provide a charon-systemd daemon targeting full systemd integration 2014-09-22 13:55:11 +02:00
Martin Willi
0be946dce3 Use the GEN silent rule when generating files with sed 2013-05-06 15:04:56 +02:00
Tobias Brunner
bc6d944705 Added an option to rename the ipsec script during installation
Also rename the man page and adjust all references in the script, the
man page and other files.

Closes #194.
2012-06-25 16:53:38 +02:00
Miklos Vajna
fc16b361ef Install systemd service file if systemd is available 2011-03-29 09:27:54 +02:00