summaryrefslogtreecommitdiffstats
path: root/test/test-execute/exec-ioschedulingclass-none.service
blob: b8198d16f2b7fe28a59efea9926908336644db9d (plain)
1
2
3
4
5
6
7
8
9
# SPDX-License-Identifier: LGPL-2.1-or-later
[Unit]
Description=Test for IOSchedulingClass=none

[Service]
# Old kernels might report "none" here, new kernels "best-effort".
ExecStart=sh -x -c 'c=$$(LC_ALL=C ionice); test "$${c%%:*}" = "none" -o "$${c%%:*}" = "best-effort"'
Type=oneshot
IOSchedulingClass=none