Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FirstNonEmpty ¶
func MapToEnvList ¶
MapToEnvList converts a map to a slice of "key=value" strings.
Types ¶
type PIDManager ¶
type PIDManager struct {
// contains filtered or unexported fields
}
PIDManager handles PID file operations
func NewPIDManager ¶
func NewPIDManager(pidFile string) *PIDManager
NewPIDManager creates a new PIDManager instance
func NewPIDManagerFromConfig ¶
func NewPIDManagerFromConfig(pidFile string) *PIDManager
NewPIDManagerFromConfig creates a new PIDManager instance from config
func (*PIDManager) GetPIDFile ¶
func (p *PIDManager) GetPIDFile() string
GetPIDFile returns the PID file path
func (*PIDManager) RemovePID ¶
func (p *PIDManager) RemovePID() error
RemovePID removes the PID file
func (*PIDManager) WritePID ¶
func (p *PIDManager) WritePID() error
WritePID writes the current process ID to the PID file
Click to show internal directories.
Click to hide internal directories.