Group :: System/Servers
RPM: pve-manager
Main Changelog Spec Patches Sources Download Gear Bugs and FR Repocop
Patch: pve-manager-postfix-ntpd.patch
Download
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 {