From a9d79928a34d33a07406bfd567967e36999edcd4 Mon Sep 17 00:00:00 2001 From: Nico Schottelius Date: Thu, 2 Jul 2020 21:55:15 +0200 Subject: [PATCH] use pkill for ceph monitors --- monit-ceph-create-start | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/monit-ceph-create-start b/monit-ceph-create-start index afcac60..a44efa0 100755 --- a/monit-ceph-create-start +++ b/monit-ceph-create-start @@ -24,7 +24,7 @@ if echo $to_monitor | grep ^osd; then # Generated by $0 check process ${to_monitor} with pidfile /var/run/ceph/${to_monitor}.pid start program = "/usr/bin/ceph-osd -i ${osdid} --pid-file /var/run/ceph/osd.${osdid}.pid -c /etc/ceph/ceph.conf --cluster ceph --setuser ceph --setgroup ceph" with timeout 3600 seconds - + stop program = "/usr/bin/pkill -f '/usr/bin/ceph-osd -i ${osdid}'" EOF else @@ -33,6 +33,7 @@ else # Generated by $0 check process ${to_monitor} with pidfile /var/run/ceph/${to_monitor}.pid start program = "/etc/init.d/ceph start ${to_monitor}" with timeout 60 seconds + stop program = "/etc/init.d/ceph stop ${to_monitor}" EOF @@ -40,7 +41,6 @@ fi # final clause same for both cat >> "$conf" <