Skip to main content

Module process

Module process 

Source
Expand description

Process helpers used by stop/restart and the croncheck maintenance lock.

The kernel-backed server lock is the current owner record. This module only parses old PID files as a bounded upgrade fallback and provides process-identity checks before a signal is sent.

Structs§

LockGuard
Try to acquire an advisory lock for a short-lived maintenance command.
PidRecord

Enums§

ParsedPidFile
PID-file formats retained only for upgrades from older releases.

Functions§

get_process_start_token
is_running
parse_pid_file
read_pid
record_still_matches
try_lock
validate_process_name
wait_for_exit