mirror of
https://github.com/systemd/systemd.git
synced 2024-11-24 10:43:35 +08:00
40c05a3459
The precise bounds of the scheduling priority depend on the scheduling policy, so depending on the order in which the two settings are specified the validation might pass or fail. When checking the setting only validate the outer range (valid values in general are 0 to 99), and let the execution fail later if the priority does not match the specified policy (1 to 99 for RR/FIFO, 0 for the rest). Fixes https://github.com/systemd/systemd/issues/20320
11 lines
203 B
Desktop File
11 lines
203 B
Desktop File
# SPDX-License-Identifier: LGPL-2.1-or-later
|
|
[Unit]
|
|
Description=Change prio
|
|
|
|
[Service]
|
|
ExecStart=/bin/true
|
|
CPUSchedulingPriority=1
|
|
CPUSchedulingPriority=2
|
|
CPUSchedulingPriority=99
|
|
CPUSchedulingPolicy=rr
|