Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37559297
en ru br
ALT Linux repos
S:7.4.3-alt6

Group :: System/Servers
RPM: pve-manager

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

Patch: pve-manager-postfix-ntpd.patch
Download


--- pve-manager/PVE/API2/Services.pm.alt	2017-08-04 13:37:50.000000000 +0300
+++ pve-manager/PVE/API2/Services.pm	2017-08-04 13:40:13.666224591 +0300
@@ -37,8 +37,16 @@ my $service_name_list = [
 # 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 $unit_extra_names = {
-    postfix => 'postfix@-'
+my $unit_extra_names;
+if ( ! -e '/lib/systemd/system/postfix.service' ) {
+    $unit_extra_names = {
+	postfix => 'postfix@-'
+    };
+};
+if (-e '/lib/systemd/system/ntpd.service') {
+    push @$service_name_list, "ntpd";
+} elsif ( -e '/lib/systemd/system/chronyd.service') {
+    push @$service_name_list, "chronyd";
 };
 
 my $get_full_service_state = sub {
 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin