提交 32fac7b4 编写于 作者: J Jason Song

add sudo_before_shutdown.sh

上级 d2fa22b4
#!/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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册