--- 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@-' +}; + my $get_full_service_state = sub { my ($service) = @_; - + $service = $real_status->{$service} if $real_status->{$service}; my $res; my $parser = sub { -- 2.11.0 _______________________________________________ pve-devel mailing list pve-devel@pve.proxmox.com https://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel