Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
付燕斌
android-image-pack-tool
Commits
ab6ecb05
Commit
ab6ecb05
authored
Jun 07, 2024
by
fuyanbin
Browse files
fix: 直接使用pgrep程序
parent
27e98e00
Pipeline
#42315
passed with stages
in 1 minute and 28 seconds
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
services/starthugep.sh
View file @
ab6ecb05
...
@@ -29,7 +29,7 @@ init() {
...
@@ -29,7 +29,7 @@ init() {
}
}
is_running
()
{
is_running
()
{
for
pid
in
$(
$PGREP
"starthugep.sh"
)
for
pid
in
$(
pgrep
"starthugep.sh"
)
do
do
if
[
"
$pid
"
!=
"
$$
"
]
if
[
"
$pid
"
!=
"
$$
"
]
then
then
...
@@ -90,7 +90,7 @@ forever() {
...
@@ -90,7 +90,7 @@ forever() {
chmod
777
"
${
SMALLP_PATH
}
/hugep-start.sh"
chmod
777
"
${
SMALLP_PATH
}
/hugep-start.sh"
while
true
while
true
do
do
pid
=
$(
$PGREP
"hugep-start.sh"
)
pid
=
$(
pgrep
"hugep-start.sh"
)
if
[
-z
"
$pid
"
]
;
then
if
[
-z
"
$pid
"
]
;
then
"
${
SMALLP_PATH
}
"
/hugep-start.sh
>
/dev/null 2>&1 &
"
${
SMALLP_PATH
}
"
/hugep-start.sh
>
/dev/null 2>&1 &
fi
fi
...
...
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