[pve-devel] [PATCH ha-manager] lrm daemon: increase stop_wait_time from 3 min to an hour

Thomas Lamprecht t.lamprecht at proxmox.com
Mon Jan 15 12:35:56 CET 2018


The systemd service file has a StopTimeout of infinity set,
this is currently not supported by the LRMs base class PVE::Daemon
As 3 minutes is really not that long increase it to an hour,
naturally only a workaround for now but it averts problems in most
situations.

Signed-off-by: Thomas Lamprecht <t.lamprecht at proxmox.com>
---
 src/PVE/Service/pve_ha_lrm.pm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/PVE/Service/pve_ha_lrm.pm b/src/PVE/Service/pve_ha_lrm.pm
index 1d7bf8e..aeef4b8 100644
--- a/src/PVE/Service/pve_ha_lrm.pm
+++ b/src/PVE/Service/pve_ha_lrm.pm
@@ -13,7 +13,7 @@ use base qw(PVE::Daemon);
 
 my $cmdline = [$0, @ARGV];
 
-my %daemon_options = (stop_wait_time => 180);
+my %daemon_options = (stop_wait_time => 3600);
 
 my $daemon = __PACKAGE__->new('pve-ha-lrm', $cmdline, %daemon_options);
 
-- 
2.11.0





More information about the pve-devel mailing list