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)