[pve-devel] [PATCH pve-ha-manager 4/4] fix includes from services

Thomas Lamprecht t.lamprecht at proxmox.com
Wed Sep 16 11:25:18 CEST 2015


The crm and lrm daemon executables need to include SafeSyslog, as
they use syslog in their signal handler.
Whereas it isn't needed anymore in the Service class of the daemons.

Signed-off-by: Thomas Lamprecht <t.lamprecht at proxmox.com>
---
 src/PVE/Service/pve_ha_crm.pm | 1 -
 src/PVE/Service/pve_ha_lrm.pm | 1 -
 src/pve-ha-crm                | 1 +
 src/pve-ha-lrm                | 1 +
 4 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/PVE/Service/pve_ha_crm.pm b/src/PVE/Service/pve_ha_crm.pm
index 18792de..f0d2cd5 100644
--- a/src/PVE/Service/pve_ha_crm.pm
+++ b/src/PVE/Service/pve_ha_crm.pm
@@ -3,7 +3,6 @@ package PVE::Service::pve_ha_crm;
 use strict;
 use warnings;
 
-use PVE::SafeSyslog;
 use PVE::Daemon;
 use Data::Dumper;
 
diff --git a/src/PVE/Service/pve_ha_lrm.pm b/src/PVE/Service/pve_ha_lrm.pm
index f7625f0..c270723 100644
--- a/src/PVE/Service/pve_ha_lrm.pm
+++ b/src/PVE/Service/pve_ha_lrm.pm
@@ -3,7 +3,6 @@ package PVE::Service::pve_ha_lrm;
 use strict;
 use warnings;
 
-use PVE::SafeSyslog;
 use PVE::Daemon;
 use Data::Dumper;
 
diff --git a/src/pve-ha-crm b/src/pve-ha-crm
index 362b919..93dfc1f 100755
--- a/src/pve-ha-crm
+++ b/src/pve-ha-crm
@@ -6,6 +6,7 @@ use warnings;
 use PVE::Service::pve_ha_crm;
 
 use PVE::RPCEnvironment;
+use PVE::SafeSyslog;
 
 $SIG{'__WARN__'} = sub {
     my $err = $@;
diff --git a/src/pve-ha-lrm b/src/pve-ha-lrm
index 259269f..50f8962 100755
--- a/src/pve-ha-lrm
+++ b/src/pve-ha-lrm
@@ -6,6 +6,7 @@ use warnings;
 use PVE::Service::pve_ha_lrm;
 
 use PVE::RPCEnvironment;
+use PVE::SafeSyslog;
 
 $SIG{'__WARN__'} = sub {
     my $err = $@;
-- 
2.1.4



More information about the pve-devel mailing list