mirror of
https://github.com/rclone/rclone.git
synced 2024-11-28 19:34:55 +01:00
e3b09211b8
It fails to build on plan9, which is part of the rclone CI matrix, and the PR fixing it upstream doesn't seem to be getting traction. Stub it on our side, we can still remove this once it gets merged.
25 lines
776 B
Go
25 lines
776 B
Go
//go:build !windows && !plan9
|
|
// +build !windows,!plan9
|
|
|
|
// Package sdactivation provides support for systemd socket activation, wrapping
|
|
// the coreos/go-systemd package.
|
|
// This wraps the underlying go-systemd library, as it fails to build on plan9
|
|
// https://github.com/coreos/go-systemd/pull/440
|
|
package sdactivation
|
|
|
|
import (
|
|
"net"
|
|
|
|
sdActivation "github.com/coreos/go-systemd/v22/activation"
|
|
)
|
|
|
|
// ListenersWithNames maps a listener name to a set of net.Listener instances.
|
|
func ListenersWithNames() (map[string][]net.Listener, error) {
|
|
return sdActivation.ListenersWithNames()
|
|
}
|
|
|
|
// Listeners returns a slice containing a net.Listener for each matching socket type passed to this process.
|
|
func Listeners() ([]net.Listener, error) {
|
|
return sdActivation.Listeners()
|
|
}
|