-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
remove finish script avoiding s6 nuke (#1337)
- Loading branch information
Showing
4 changed files
with
25 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
#!/bin/execlineb -S0 | ||
|
||
# This is the shutdown script, running as process 1. | ||
cd / | ||
|
||
# Merge environments from our custom stage into current context | ||
s6-envdir -I /var/run/s6/env-stage3 | ||
|
||
# Reap all the zombies, and we're done. | ||
wait { } | ||
|
||
# Use CMD exit code defaulting to zero if not present. | ||
importas -u -D0 S6_STAGE2_EXITED S6_STAGE2_EXITED | ||
exit ${S6_STAGE2_EXITED} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
fixes: | ||
- | | ||
Fix Docker container `--pid=host` operations. Previous RCs can cause host system | ||
instabilities and should not be run in pid host mode. |