Documentation
¶
Overview ¶
Package logind asks systemd-logind whether processes a user leaves running survive the end of the login session they were started from.
With KillUserProcesses=yes (logind.conf) logind kills every process of a session's scope when the session ends, which would take detached holders spawned by the bridge (an SSH session) with it. Processes moved into a scope of the user's service manager (systemd-run --user --scope) leave the session; they still end with the service manager at the user's last logout unless lingering is enabled.
Index ¶
Constants ¶
This section is empty.
Variables ¶
var KillUserProcessesCmd = []string{
"busctl", "get-property", "org.freedesktop.login1", "/org/freedesktop/login1",
"org.freedesktop.login1.Manager", "KillUserProcesses",
}
KillUserProcessesCmd reads logind's KillUserProcesses setting; the output is parsed with ParseBusctlBool.
Functions ¶
func KillUserProcesses ¶
func KillUserProcesses() (kill, known bool)
KillUserProcesses reports logind's KillUserProcesses setting. known is false off Linux and when logind cannot be asked.
func ParseBusctlBool ¶
ParseBusctlBool parses a boolean property as printed by busctl get-property ("b true"). ok is false for any other output.
Types ¶
This section is empty.