]>
git.ipfire.org Git - thirdparty/systemd.git/blob - test/units/testsuite-05.sh
5 P
=/run
/systemd
/system.conf.d
8 cat >$P/rlimits.conf
<<EOF
10 DefaultLimitNOFILE=10000:16384
13 systemctl daemon-reload
15 [[ "$(systemctl show -P DefaultLimitNOFILESoft)" = "10000" ]]
16 [[ "$(systemctl show -P DefaultLimitNOFILE)" = "16384" ]]
18 [[ "$(systemctl show -P LimitNOFILESoft testsuite-05.service)" = "10000" ]]
19 [[ "$(systemctl show -P LimitNOFILE testsuite-05.service)" = "16384" ]]
21 # shellcheck disable=SC2016
22 systemd-run
--wait -t bash
-c '[[ "$(ulimit -n -S)" = "10000" ]]'
23 # shellcheck disable=SC2016
24 systemd-run
--wait -t bash
-c '[[ "$(ulimit -n -H)" = "16384" ]]'