2020-02-12 12:40:22 +00:00
|
|
|
// +build nosystemd !linux
|
2018-04-15 13:03:36 +00:00
|
|
|
// This file contains stubs to support non-systemd use
|
|
|
|
|
|
|
|
package main
|
|
|
|
|
2020-02-12 12:40:22 +00:00
|
|
|
import (
|
2018-12-17 16:01:01 +00:00
|
|
|
"io"
|
|
|
|
|
|
|
|
"github.com/alecthomas/kingpin"
|
|
|
|
)
|
|
|
|
|
2018-04-15 13:03:36 +00:00
|
|
|
type Journal struct {
|
|
|
|
io.Closer
|
|
|
|
Path string
|
|
|
|
}
|
|
|
|
|
2018-12-17 16:01:01 +00:00
|
|
|
func systemdFlags(enable *bool, unit, slice, path *string, app *kingpin.Application) {}
|
2018-04-15 13:03:36 +00:00
|
|
|
|
|
|
|
func NewJournal(unit, slice, path string) (*Journal, error) {
|
|
|
|
return nil, nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (e *PostfixExporter) CollectLogfileFromJournal() error {
|
|
|
|
return nil
|
|
|
|
}
|