fs/log: don't compile systemd log integration for non unix systems

This commit is contained in:
Benjamin Gustin
2020-12-29 00:07:12 +01:00
committed by GitHub
parent 5601652d65
commit 4d54454900
3 changed files with 66 additions and 26 deletions

16
fs/log/systemd.go Normal file
View File

@ -0,0 +1,16 @@
// Systemd interface for non-Unix variants only
// +build windows nacl plan9
package log
import (
"log"
"runtime"
)
// Enables systemd logs if configured or if auto detected
func startSystemdLog() bool {
log.Fatalf("--log-systemd not supported on %s platform", runtime.GOOS)
return false
}