Documentation
¶
Overview ¶
Package process provides utilities for managing process-related operations, such as PID file handling and process management.
Package process provides utilities for managing process-related operations, such as PID file handling and process management.
Index ¶
- func FindProcess(pid int) (bool, error)
- func GetPIDFilePath(containerBaseName string) string
- func KillProcess(pid int) error
- func ReadPIDFile(containerBaseName string) (int, error)
- func RemovePIDFile(containerBaseName string) error
- func WriteCurrentPIDFile(containerBaseName string) error
- func WritePIDFile(containerBaseName string, pid int) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FindProcess ¶
FindProcess finds a process by its ID and checks if it's running. This function works on both Linux and macOS.
func GetPIDFilePath ¶
GetPIDFilePath returns the path to the PID file for a container
func ReadPIDFile ¶
ReadPIDFile reads the process ID from a file
func RemovePIDFile ¶
RemovePIDFile removes the PID file
func WriteCurrentPIDFile ¶
WriteCurrentPIDFile writes the current process ID to a file
func WritePIDFile ¶
WritePIDFile writes a process ID to a file
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.