Commit 26e377c6 by 张乐 Committed by GitHub

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

remove sudo before shutdown as it is not needed anymore
parents 14ccb66e 4221dc66
#!/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