mirror of
https://github.com/containrrr/watchtower.git
synced 2025-12-16 15:10:12 +01:00
Update cmd/root.go
Co-authored-by: nils måsén <nils@piksel.se>
This commit is contained in:
parent
3acc52ed59
commit
adb0272901
1 changed files with 2 additions and 1 deletions
|
|
@ -157,7 +157,8 @@ func Run(c *cobra.Command, names []string) {
|
|||
if healthCheck {
|
||||
// health check should not have pid 1
|
||||
if os.Getpid() == 1 {
|
||||
os.Exit(1)
|
||||
time.Sleep(1 * time.Second)
|
||||
log.Fatal("The health check flag should never be passed to the main watchtower container process")
|
||||
}
|
||||
os.Exit(0)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue