Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetListenerFromEnvironment ¶
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 ¶
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.