strongswan: fix reload service
authorHans Dedecker <redacted>
Wed, 13 Dec 2017 09:32:26 +0000 (10:32 +0100)
committerHans Dedecker <redacted>
Wed, 13 Dec 2017 09:49:55 +0000 (10:49 +0100)
commit1d31d840d45a2bce86c1a7b1871e86dd20b39cf2
treeb641f895a0a6dc1448d62a452e8d687ad6180e67
parent49b519fed44d083d9e2fab4cb6b0609de032a284
strongswan: fix reload service

Based on the ipsec running state reload_service is either reloading ipsec
or starting ipsec. However in the latter case it calls ipsec start which
bypasses the procd start_service function which means the running ipsec
instance is not managed by procd.
Fix this by calling start in case ipsec is not running; at the same time
add service_running function which is used by procd provided running
function.

Signed-off-by: Hans Dedecker <redacted>
net/strongswan/files/ipsec.init
git clone https://git.99rst.org/PROJECT