systemd

package
v2.1.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2018 License: BSD-3-Clause, BSD-3-Clause Imports: 9 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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.

NOTE: This logic is duplicated in run_keybase. If you make changes here, keep them in sync.

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