Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
clspigot-docker
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
tmueller
clspigot-docker
Commits
ed889a4a
Commit
ed889a4a
authored
4 years ago
by
TheBroTMv2
Browse files
Options
Downloads
Patches
Plain Diff
Update papermc.sh
added wait for last launched background process to give the server time to shutdown
parent
d22b0405
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!1
Master
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
papermc.sh
+2
-1
2 additions, 1 deletion
papermc.sh
with
2 additions
and
1 deletion
papermc.sh
+
2
−
1
View file @
ed889a4a
...
...
@@ -39,6 +39,7 @@ fi
exec_stop
()
{
echo
"
\n
## Recieved SIGINT/SIGTERM; Shutting down container..."
screen
-r
mc
-X
"stop"
wait
$!
exit
0
}
...
...
@@ -49,7 +50,7 @@ while true
then
cat
/papermc/logs/latest.log
trap
exec_stop TERM INT
sleep
2
0
sleep
1
0
else
screen
-dmS
mc java
-server
-Xms
${
MC_RAM
}
-Xmx
${
MC_RAM
}
${
JAVA_OPTS
}
-jar
${
JAR_NAME
}
nogui
fi
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment