Skip to content

Commit d6ba49d

Browse files
authored
Update memory-limit.sh
1 parent dab3a9b commit d6ba49d

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

memory-limit.sh

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,15 @@
22
# by spiritlhl
33
# from https://github.com/spiritLHLS/Oracle-server-keep-alive-script
44

5+
if [[ -d "/usr/share/locale/en_US.UTF-8" ]]; then
6+
export LANG=en_US.UTF-8
7+
export LC_ALL=en_US.UTF-8
8+
export LANGUAGE=en_US.UTF-8
9+
else
10+
export LANG=C.UTF-8
11+
export LC_ALL=C.UTF-8
12+
export LANGUAGE=C.UTF-8
13+
fi
514
pid_file=/tmp/memory-limit.pid
615
if [ -e "${pid_file}" ]; then
716
# 如果 PID 文件存在,则读取其中的 PID

0 commit comments

Comments
 (0)