[pve-devel] [PATCH manager] Fix #1386: track postfix daemon status via postfix at -
Emmanuel Kasper
e.kasper at proxmox.com
Wed May 17 11:54:12 CEST 2017
---
PVE/API2/Services.pm | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
diff --git a/PVE/API2/Services.pm b/PVE/API2/Services.pm
index 3ddf5f56..1cbfe2c5 100644
--- a/PVE/API2/Services.pm
+++ b/PVE/API2/Services.pm
@@ -35,9 +35,16 @@ my $service_name_list = [
'systemd-timesyncd',
];
+# since postfix package 3.1.0-3.1 the postfix unit is only here to
+# manage subinstances, of which the default is called "-".
+# This is where we look for the daemon status
+my $real_status = {
+ postfix => 'postfix at -'
+};
+
my $get_full_service_state = sub {
my ($service) = @_;
-
+ $service = $real_status->{$service} if $real_status->{$service};
my $res;
my $parser = sub {
--
2.11.0
More information about the pve-devel
mailing list