Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
appbuild
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
赵啸非
appbuild
Commits
440ffd23
Commit
440ffd23
authored
Jan 07, 2023
by
赵啸非
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改前端生成页面
parent
a267ddad
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
3 deletions
+7
-3
appbuild-manager/src/main/bin/shutdown.sh
appbuild-manager/src/main/bin/shutdown.sh
+1
-0
appbuild-manager/src/main/bin/start.sh
appbuild-manager/src/main/bin/start.sh
+6
-3
No files found.
appbuild-manager/src/main/bin/shutdown.sh
View file @
440ffd23
...
...
@@ -33,5 +33,6 @@ writelog "stoping application $PROJECT_NAME......"
kill
-15
${
pid
}
writelog
"Send shutdown request to Server
$PROJECT_NAME
OK"
exit
0
;
appbuild-manager/src/main/bin/start.sh
View file @
440ffd23
...
...
@@ -36,8 +36,11 @@ if [ ! -d $TEMP_PATH ];
then
mkdir
-p
$TEMP_PATH
;
fi
#-z STRING 如果STRING的长度为零则为真 ,即判断是否为空,空即是真;
if
[
-z
"
$JAVACMD
"
]
;
then
#-n STRING 如果STRING的长度非零则为真 ,即判断是否为非空,非空即是真;
if
[
-n
"
$JAVA_HOME
"
]
;
then
#-x FILE 如果 FILE 存在且是可执行的则为真。
if
[
-x
"
$JAVA_HOME
/jre/sh/java"
]
;
then
JAVACMD
=
"
$JAVA_HOME
/jre/sh/java"
else
...
...
@@ -45,11 +48,11 @@ if [ -z "$JAVACMD" ] ; then
fi
else
JAVACMD
=
`
which java
`
writelog
"Error: JAVA_HOME is not defined correctly."
writelog
"Error: JAVA_HOME is not defined correctly.
$JAVACMD
"
#exit $ERR_NO_JAVA
fi
fi
#-x FILE 如果 FILE 存在且是可执行的则为真。
if
[
!
-x
"
$JAVACMD
"
]
;
then
writelog
"We cannot execute
$JAVACMD
"
exit
$ERR_NO_JAVA
...
...
@@ -81,7 +84,7 @@ do
jcpid
=
`
ps
-ef
|
grep
-v
"grep"
|
grep
"
$MAIN_CLASS
"
|
grep
"app.port=
$PORT
"
|
sed
-n
'1P'
|
awk
'{print $2}'
`
if
[
$jcpid
]
;
then
writelog
"The
$PROJECT_NAME
start finished, PID is
$jcpid
"
exit
$SUCCESS
exit
0
else
writelog
"starting the application ..
$i
"
sleep
1
...
...
Write
Preview
Markdown
is supported
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