Check zmconfigd service status

This commit is contained in:
Daniel Berteaud 2019-09-13 15:33:52 +02:00
parent c9851a2b9d
commit 61f56ef30e
1 changed files with 4 additions and 0 deletions

View File

@ -41,6 +41,10 @@ setuid($zimuid) if ($uid ne $zimuid);
setgid($zimgid) if ($gid ne $zimgid);
if ($services){
# zmconfigd is always enabled and should be running
push @{$json}, {
'{#ZM_SERVICE}' => 'zmconfigd'
};
foreach my $service (qx($zmprov getServer $hostname zimbraServiceEnabled)){
if ($service =~ m/^zimbraServiceEnabled:\s+(\w+)/){
push @{$json}, {