Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
jinli gu
JSH ERP
Commits
3bd9510f
Commit
3bd9510f
authored
May 11, 2021
by
季圣华
Committed by
Gitee
May 11, 2021
Browse files
update jshERP-boot/src/main/bin/run-manage.sh.
parent
9159f233
Changes
1
Hide whitespace changes
Inline
Side-by-side
jshERP-boot/src/main/bin/run-manage.sh
View file @
3bd9510f
SERVER_NAME
=
jshERP
readonly
APP_HOME
=
${
FILE_PATH
:-
$(
dirname
$(
cd
`
dirname
$0
`
;
pwd
))
}
#readonly JAVA_HOME=""
readonly
CONFIG_HOME
=
"
$APP_HOME
/config/"
readonly
LIB_HOME
=
"
$APP_HOME
/lib"
readonly
LOGS_HOME
=
"
$APP_HOME
/logs"
readonly
PID_FILE
=
"
$LOGS_HOME
/application.pid"
readonly
APP_MAIN_CLASS
=
"jshERP3.0.jar"
readonly
LOG_CONFIG
=
"
$CONFIG_HOME
/logback-spring.xml"
readonly
JAVA_RUN
=
"-Dlogs.home=
$LOGS_HOME
-Dlogging.config=
$LOG_CONFIG
-Dspring.config.location=file:
$CONFIG_HOME
-Dspring.pid.file=
$PID_FILE
-Dspring.pid.fail-on-write-error=true"
readonly
JAVA_OPTS
=
"-server -Xms128m -Xmx320m -XX:PermSize=128M -XX:MaxPermSize=256M
$JAVA_RUN
"
readonly
JAVA
=
"java"
PID
=
0
if
[
!
-x
"
$LOGS_HOME
"
]
then
mkdir
$LOGS_HOME
fi
chmod
+x
-R
"
$JAVA_HOME
/bin/"
functions
=
"/etc/functions.sh"
if
test
-f
$functions
;
then
.
$functions
...
...
@@ -42,7 +33,6 @@ else
echo
"WARNING!
$@
"
}
fi
function
checkpid
()
{
PID
=
$(
ps
-ef
|
grep
$APP_MAIN_CLASS
|
grep
-v
'grep'
|
awk
'{print int($2)}'
)
if
[[
-n
"
$PID
"
]]
...
...
@@ -52,7 +42,6 @@ function checkpid() {
return
1
fi
}
function
start
()
{
checkpid
if
[[
$?
-eq
0
]]
...
...
@@ -73,7 +62,6 @@ function start() {
fi
fi
}
function
stop
()
{
checkpid
if
[[
$?
-eq
0
]]
;
...
...
@@ -91,7 +79,6 @@ function stop() {
warning
"[
$APP_MAIN_CLASS
]: is not running ..."
fi
}
function
status
()
{
checkpid
if
[[
$?
-eq
0
]]
...
...
@@ -103,7 +90,6 @@ function status() {
return
1
fi
}
function
info
()
{
echo
"System Information:"
echo
...
...
@@ -121,7 +107,6 @@ function info() {
echo
echo
"****************************"
}
case
"
$1
"
in
'start'
)
start
...
...
@@ -143,4 +128,4 @@ case "$1" in
echo
"Usage:
$0
{help|start|stop|restart|status|info}"
;;
esac
exit
0
exit
0
\ No newline at end of file
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment