]> git.ipfire.org Git - thirdparty/systemd.git/blob - test/TEST-05-RLIMITS/test-rlimits.sh
tty-ask-password: Split out password sending
[thirdparty/systemd.git] / test / TEST-05-RLIMITS / test-rlimits.sh
1 #!/bin/bash
2
3 set -x
4 set -e
5 set -o pipefail
6
7 [[ "$(systemctl show -p DefaultLimitNOFILESoft)" = "DefaultLimitNOFILESoft=10000" ]]
8 [[ "$(systemctl show -p DefaultLimitNOFILE)" = "DefaultLimitNOFILE=16384" ]]
9
10 [[ "$(systemctl show -p LimitNOFILESoft testsuite.service)" = "LimitNOFILESoft=10000" ]]
11 [[ "$(systemctl show -p LimitNOFILE testsuite.service)" = "LimitNOFILE=16384" ]]
12
13 [[ "$(ulimit -n -S)" = "10000" ]]
14 [[ "$(ulimit -n -H)" = "16384" ]]
15
16 touch /testok
17 exit 0