File tree Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -2503,7 +2503,11 @@ for PMDA in $needinstall ; do
2503
2503
fi
2504
2504
done
2505
2505
# managed via /usr/lib/systemd/system-preset/90-default.preset nowadays:
2506
- %if 0%{?rhel} > 0 && 0%{?rhel} < 10
2506
+ %if 0%{?fedora} > 40 || 0%{?rhel} > 9
2507
+ for s in pmcd pmlogger pmie; do
2508
+ systemctl --quiet is-enabled $s && systemctl restart $s >/dev/null 2>&1
2509
+ done
2510
+ %else # old-school methods follow
2507
2511
%if "@enable_systemd@" == "true"
2508
2512
systemctl restart pmcd pmlogger pmie >/dev/null 2>&1
2509
2513
systemctl enable pmcd pmlogger pmie >/dev/null 2>&1
Original file line number Diff line number Diff line change @@ -3011,7 +3011,11 @@ for PMDA in dm nfsclient openmetrics ; do
3011
3011
fi
3012
3012
done
3013
3013
# managed via /usr/lib/systemd/system-preset/90-default.preset nowadays:
3014
- %if 0%{?rhel } > 0 && 0%{?rhel } < 10
3014
+ %if 0%{?fedora } > 40 || 0%{?rhel } > 9
3015
+ for s in pmcd pmlogger pmie; do
3016
+ systemctl --quiet is-enabled $s && systemctl restart $s > /dev/null 2>&1
3017
+ done
3018
+ %else # old-school methods follow
3015
3019
%if ! %{disable_systemd }
3016
3020
systemctl restart pmcd pmlogger pmie > /dev/null 2>&1
3017
3021
systemctl enable pmcd pmlogger pmie > /dev/null 2>&1
You can’t perform that action at this time.
0 commit comments