Commit 05c3c67b by 张乐 Committed by GitHub

Merge pull request #444 from nobodyiam/increase-open-file-limit

add sudo_before_shutdown.sh
parents d2fa22b4 32fac7b4
#!/bin/bash
if grep -Fq "LimitNOFILE" /usr/lib/systemd/system/ctripapp\@100003172.service; then
echo "already set LimitNOFILE";
else
sed -i '/\[Service\]/a\LimitNOFILE=65536' /usr/lib/systemd/system/ctripapp\@100003172.service;
systemctl daemon-reload
fi
\ No newline at end of file
#!/bin/bash
if grep -Fq "LimitNOFILE" /usr/lib/systemd/system/ctripapp\@100003171.service; then
echo "already set LimitNOFILE";
else
sed -i '/\[Service\]/a\LimitNOFILE=65536' /usr/lib/systemd/system/ctripapp\@100003171.service;
systemctl daemon-reload
fi
\ No newline at end of file
#!/bin/bash
if grep -Fq "LimitNOFILE" /usr/lib/systemd/system/ctripapp\@100003173.service; then
echo "already set LimitNOFILE";
else
sed -i '/\[Service\]/a\LimitNOFILE=65536' /usr/lib/systemd/system/ctripapp\@100003173.service;
systemctl daemon-reload
fi
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment