There is probably a better way to make the list of signals to catch I also noticed that the agent kept dying on me when the CA was not setup correctly with an EOF error from the ssh client
11 lines
130 B
Go
11 lines
130 B
Go
// +build darwin linux
|
|
package main
|
|
|
|
import (
|
|
"syscall"
|
|
)
|
|
|
|
func init() {
|
|
sigs = append(sigs, syscall.SIGTERM, syscall.SIGHUP)
|
|
}
|