From: Florian Eckert Date: Thu, 25 Jun 2026 11:13:27 +0000 (+0200) Subject: strongswan: use procd running check X-Git-Url: http://git.99rst.org/?a=commitdiff_plain;h=4f4522702dc630b77083e7dbad408de63776416d;p=openwrt-packages.git strongswan: use procd running check Instead of using the standard procd check, the function is overridden, and the check to see if the service is running is performed using the command 'swanctl --stats > /dev/null 2>&1'. The problem with this is, that this call is blocking if the strongswan charon socket is not available. The call does not return until the timeout has expired. This block does not occur if we use the standard behavior of procd, which checks whether the service it started is actually running. This change therefore uses the standard call via procd, which returns the value without blocking. Signed-off-by: Florian Eckert --- diff --git a/net/strongswan/files/swanctl.init b/net/strongswan/files/swanctl.init index 6826331db..59090490d 100644 --- a/net/strongswan/files/swanctl.init +++ b/net/strongswan/files/swanctl.init @@ -739,10 +739,6 @@ prepare_env() { do_postamble } -service_running() { - swanctl --stats > /dev/null 2>&1 -} - reload_service() { running && { prepare_env