From fe94c0057bd0c44317f22afeb0fe8432e0b18c64 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Sat, 9 Mar 2024 17:46:36 -0600 Subject: remove some of the wierder code Signed-off-by: Jeff Carr --- linux.go | 27 --------------------------- 1 file changed, 27 deletions(-) delete mode 100644 linux.go (limited to 'linux.go') 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() -} -- cgit v1.2.3