mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-17 07:03:31 +00:00
Add a signal handler to pause.
It returns 0 when a signal is received.
This commit is contained in:
@@ -3,4 +3,9 @@
|
||||
set -e
|
||||
set -x
|
||||
|
||||
# Build the binary.
|
||||
go build --ldflags '-extldflags "-static" -s' pause.go
|
||||
|
||||
# Run goupx to shrink binary size.
|
||||
go get github.com/pwaller/goupx
|
||||
goupx pause
|
||||
|
Reference in New Issue
Block a user