hwdb: fix screen rotation for EXO Wings 2in1 w1125 (#36283)
[systemd.io.git] / test / units / TEST-05-RLIMITS.rlimit.sh
blob6b425d4081de9d30a8b227def5aa0aa7d1538f67
1 #!/usr/bin/env bash
2 # SPDX-License-Identifier: LGPL-2.1-or-later
3 set -eux
4 set -o pipefail
6 P=/run/systemd/system.conf.d
7 mkdir $P
9 cat >$P/rlimits.conf <<EOF
10 [Manager]
11 DefaultLimitNOFILE=10000:16384
12 EOF
14 systemctl daemon-reload
16 [[ "$(systemctl show -P DefaultLimitNOFILESoft)" = "10000" ]]
17 [[ "$(systemctl show -P DefaultLimitNOFILE)" = "16384" ]]
19 [[ "$(systemctl show -P LimitNOFILESoft TEST-05-RLIMITS.service)" = "10000" ]]
20 [[ "$(systemctl show -P LimitNOFILE TEST-05-RLIMITS.service)" = "16384" ]]
22 # shellcheck disable=SC2016
23 systemd-run --wait -t bash -c '[[ "$(ulimit -n -S)" = "10000" ]]'
24 # shellcheck disable=SC2016
25 systemd-run --wait -t bash -c '[[ "$(ulimit -n -H)" = "16384" ]]'