Skip to content
This repository was archived by the owner on Sep 21, 2022. It is now read-only.

Commit 3ed0b19

Browse files
authored
Merge pull request #221 from xtreme-nitin-ravindran/fix_ipsec_check
Tighten up IPsec monit check
2 parents 5c4f4e6 + d40f3f2 commit 3ed0b19

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

jobs/mysql/templates/mariadb_ctl.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ case $1 in
5959
# Ensure that if IPsec is present, it is running before we try to start
6060
set +e
6161
ipsec_path=$(ls /var/vcap/packages/strongswan*/sbin/ipsec | head -1)
62-
ipsec_monit_job=$(/var/vcap/bosh/bin/monit summary | grep ipsec)
62+
ipsec_monit_job=$(/var/vcap/bosh/bin/monit summary | grep "^Process[[:space:]]'ipsec'")
6363
if [ -n "${ipsec_monit_job}" ]; then
6464
$ipsec_path status
6565
ipsec_status=$?

0 commit comments

Comments
 (0)