systemd

package
v1.0.39 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 21, 2017 License: BSD-3-Clause, BSD-3-Clause Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetListenerFromEnvironment

func GetListenerFromEnvironment() (net.Listener, error)

If the service has been started via socket activation, with a socket already open in the environment, return that socket. Otherwise return (nil, nil). Currently only implemented for systemd on Linux.

func IsRunningSystemd

func IsRunningSystemd() bool

func IsSocketActivated

func IsSocketActivated() bool

NOTE: We no longer configure our keybse.service and kbfs.service units to be socket-activated by default. It was causing too much trouble when non-systemd instances deleted the socket files. It's possible this issue will get fixed in future versions of systemd; see https://github.com/systemd/systemd/issues/7274.

func NotifyStartupFinished

func NotifyStartupFinished()

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL