Tighten up IPsec monit check
@@ -59,7 +59,7 @@ case $1 in
# Ensure that if IPsec is present, it is running before we try to start
set +e
ipsec_path=$(ls /var/vcap/packages/strongswan*/sbin/ipsec | head -1)
- ipsec_monit_job=$(/var/vcap/bosh/bin/monit summary | grep ipsec)
+ ipsec_monit_job=$(/var/vcap/bosh/bin/monit summary | grep "^Process[[:space:]]'ipsec'")
if [ -n "${ipsec_monit_job}" ]; then
$ipsec_path status
ipsec_status=$?
