提交 26e377c6 编写于 作者: 张乐 提交者: GitHub

Merge pull request #603 from nobodyiam/remove-sudo-shutdown

remove sudo before shutdown as it is not needed anymore
#!/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.
先完成此消息的编辑!
想要评论请 注册