diff options
| author | Jeff Carr <[email protected]> | 2024-03-09 17:46:36 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2024-03-09 17:46:36 -0600 |
| commit | fe94c0057bd0c44317f22afeb0fe8432e0b18c64 (patch) | |
| tree | 7d9041456dc538ce592981344403cda7197d3441 /linux.go | |
| parent | f163738c86b84d8b6ddf12326d835de0191834bd (diff) | |
remove some of the wierder code
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'linux.go')
| -rw-r--r-- | linux.go | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/linux.go b/linux.go deleted file mode 100644 index ee24420..0000000 --- a/linux.go +++ /dev/null @@ -1,27 +0,0 @@ -//go:build linux && go1.7 -// +build linux,go1.7 - -// put stuff in here that you only want compiled under linux - -package shell - -import ( - "log" - "os" - "os/signal" - "syscall" - - "github.com/wercker/journalhook" -) - -var sigChan chan os.Signal - -func handleSignal(err interface{}, ret int) { - log.Println("handleSignal() only should be compiled on linux") - sigChan = make(chan os.Signal, 3) - signal.Notify(sigChan, syscall.SIGUSR1) -} - -func UseJournalctl() { - journalhook.Enable() -} |
