systemd

package
v3.2.1+incompatible Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2019 License: BSD-3-Clause, BSD-3-Clause Imports: 9 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 IsUserSystemdRunning added in v1.0.40

func IsUserSystemdRunning() bool

IsUserSystemdRunning checks that systemd is running at the user- (as opposed to system-) level. IsRunningSystemd below checks the system level, but there are cases where the system level is working while the user level is not. Sudo env weirdness can cause it, and it also happens on older distros. In those cases, we'll also fall back to non-systemd startup.

This function prints loud warnings because we only ever run it when IsRunningSystemd is true, in which case all of these errors are unexpected.

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