pidfile

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Read

func Read(path string) (int, bool)

Read reads the PID from the given file and checks if the process is alive. Returns the PID and true if alive, 0 and false otherwise.

func Remove

func Remove(path string)

Remove removes the PID file.

func Write

func Write(path string) error

Write writes the current process PID to the given path.

Types

This section is empty.

Jump to

Keyboard shortcuts

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