Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
chain33-pai
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
szh
chain33-pai
Commits
4f50ca9f
Commit
4f50ca9f
authored
Dec 12, 2019
by
szh
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
只有一个可执行编译程序的时候自启动
parent
1e3df323
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
4 deletions
+10
-4
auto.sh
auto.sh
+10
-4
No files found.
auto.sh
View file @
4f50ca9f
...
...
@@ -2,12 +2,18 @@
ss
-tunl
|
grep
8801 &> /dev/null
Z
=
`
echo
$?
`
if
[[
$Z
!=
0
]]
;
then
S
=
`
find /media
-name
"v7-bityuan"
`
if
[[
"
$S
"
!=
""
]]
;
then
N
=
`
find /media
-name
"v7-bityuan"
`
echo
$N
arr
=(
${
N
// /
}
)
num
=
${#
arr
[*]
}
echo
${
arr
[0]
}
if
[[
"
$num
"
==
"1"
]]
;
then
echo
"v7-bituan is starting"
nohup
$S
&
chmod
+x
${
arr
[0]
}
nohup
${
arr
[0]
}
&
else
echo
"too many node"
fi
else
echo
"v7-bityuan is running"
...
...
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