pidfile

package
v0.6.2 Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package pidfile provides PID file management for the grove daemon.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Acquire

func Acquire(path string) error

Acquire writes the current PID to the file. It returns an error if another instance is already running.

func IsRunning

func IsRunning(path string) (bool, int, error)

IsRunning checks if the daemon described by the pidfile is active.

func Read

func Read(path string) (int, error)

Read returns the PID from the file, or 0 if not found/invalid.

func Release

func Release(path string) error

Release removes the PID file.

Types

This section is empty.

Jump to

Keyboard shortcuts

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