summaryrefslogtreecommitdiffstats
path: root/test/test-execute/exec-cpuaffinity1.service
blob: 2a8544acb1f403cc9353b404965facdbf44805e8 (plain)
1
2
3
4
5
6
7
# SPDX-License-Identifier: LGPL-2.1-or-later
[Unit]
Description=Test for CPUAffinity (simple)

[Service]
ExecStart=/bin/sh -c 'test $$(cat /proc/self/status | grep Cpus_allowed: | rev | cut -c 1) = 1'
CPUAffinity=0