test/testdata/test-execute/exec-ioschedulingclass-none.service
raw| 1 | # SPDX-License-Identifier: LGPL-2.1-or-later |
| 2 | [Unit] |
| 3 | Description=Test for IOSchedulingClass=none |
| 4 | |
| 5 | [Service] |
| 6 | # Old kernels might report "none" here, new kernels "best-effort". |
| 7 | ExecStart=bash -x -c 'c=$$(LC_ALL=C ionice); test "$${c%%:*}" = "none" -o "$${c%%:*}" = "best-effort"' |
| 8 | Type=oneshot |
| 9 | IOSchedulingClass=none |