daemonruntime

package
v0.11.0-beta.3 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package daemonruntime owns the web daemon's private runtime directory and process identity checks. It does not launch or control terminal sessions.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DefaultDir

func DefaultDir() string

DefaultDir preserves UAM_SESSION_DIR and the existing per-user location so upgrades can find and safely stop an already-running web daemon. The temp directory survives logout, unlike XDG_RUNTIME_DIR on some hosts.

func EnsureDir

func EnsureDir(dir string) error

EnsureDir creates or restricts a real, current-user-owned runtime directory.

func ProcAlive

func ProcAlive(pid int) bool

ProcAlive probes liveness; callers must also check identity before signaling.

func ProcStartTime

func ProcStartTime(pid int) int64

ProcStartTime returns a kernel process identity, or zero if unavailable.

func VerifyDir

func VerifyDir(dir string) error

VerifyDir checks ownership and owner-only permissions without changing files.

Types

This section is empty.

Jump to

Keyboard shortcuts

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