Commit 4221dc66 by nobodyiam

remove sudo before shutdown as it is not needed anymore

parent bc0e4846
#!/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