diff options
Diffstat (limited to 'daemonize.go')
-rw-r--r-- | daemonize.go | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/daemonize.go b/daemonize.go index 7d00288..e227942 100644 --- a/daemonize.go +++ b/daemonize.go @@ -2,14 +2,10 @@ package main import ( "fmt" - "log" - "log/syslog" "os" "os/exec" "os/signal" "syscall" - - "github.com/rfjakob/gocryptfs/cryptfs" ) // The child sends us USR1 if the mount was successful @@ -50,13 +46,3 @@ func forkChild() { // The child exited with 0 - let's do the same. os.Exit(0) } - -// Switch one Logger to syslog -func switchToSyslog(l *log.Logger, p syslog.Priority) { - w, err := syslog.New(p, PROGRAM_NAME) - if err != nil { - cryptfs.Warn.Printf("Cannot switch 0x%02x to syslog: %v", p, err) - } else { - l.SetOutput(w) - } -} |