1 2 3 4 5 6 7
[Unit] Description=Test for IOSchedulingClass=realtime [Service] ExecStart=/bin/bash -c 'c=$(ionice); echo $c; [[ "$c" == realtime* ]]' Type=oneshot IOSchedulingClass=realtime