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).
16 lines
389 B
Plaintext
16 lines
389 B
Plaintext
[Unit]
|
|
Description=strongSwan IPsec IKEv1/IKEv2 daemon using swanctl
|
|
After=network-online.target
|
|
|
|
[Service]
|
|
Type=notify
|
|
ExecStart=@SBINDIR@/charon-systemd
|
|
ExecStartPost=@SBINDIR@/swanctl --load-all --noprompt
|
|
ExecReload=@SBINDIR@/swanctl --reload
|
|
ExecReload=@SBINDIR@/swanctl --load-all --noprompt
|
|
Restart=on-abnormal
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|
|
Alias=strongswan-swanctl.service
|