daemon

package
v0.0.0-...-ef44059 Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2023 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckIfInvokedBySystemd

func CheckIfInvokedBySystemd() bool

CheckIfInvokedBySystemd returns true if this process has been invoked by systemd directly or indirectly, false in case it hasn't, the system is not using systemd, or we are not sure https://github.com/probonopd/go-appimage/blob/23ad67c727fb762867fe96db06d600a7cdaf297d/src/appimaged/prerequisites.go#L396

func CheckIfRunningSystemd

func CheckIfRunningSystemd() bool

CheckIfRunningSystemd returns true if pid 1 is (a symlink to) systemd, otherwise false https://github.com/probonopd/go-appimage/blob/23ad67c727fb762867fe96db06d600a7cdaf297d/src/appimaged/prerequisites.go#L396

func SetupToRunThroughSystemd

func SetupToRunThroughSystemd() error

SetupToRunThroughSystemd checks if this process has been launched through systemd on a systemd system and takes appropriate measures if it has not, either because systemd was not yet set up to launch it, or because another (newer?) version has been launched manually by the user outside of systemd https://github.com/probonopd/go-appimage/blob/23ad67c727fb762867fe96db06d600a7cdaf297d/src/appimaged/prerequisites.go#L322

func Sync

func Sync(updater UpdateFunction)

Types

type UpdateFunction

type UpdateFunction func() ([]string, error)

Jump to

Keyboard shortcuts

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