systemd/test/test-execute/exec-oomscoreadjust-positive.service

8 lines
179 B
SYSTEMD
Raw Normal View History

[Unit]
Description=Test for OOMScoreAdjust
[Service]
ExecStart=/bin/bash -c 'c=$(cat /proc/self/oom_score_adj); echo $c; exit $(test $c -eq 100)'
OOMScoreAdjust=100
Type=oneshot