sudo_before_shutdown.sh 276 Bytes EditWeb IDE 1 2 3 4 5 6 7 8 #!/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