package pidfile

import "github.com/docker/cli/components/engine/pkg/pidfile"

Package pidfile provides structure and helper functions to create and remove PID file. A PID file is usually a file used to store the process ID of a running process.

Index

Types

type PIDFile

type PIDFile struct {
	// contains filtered or unexported fields
}

PIDFile is a file used to store the process ID of a running process.

func New

func New(path string) (*PIDFile, error)

New creates a PIDfile using the specified path.

func (PIDFile) Remove

func (file PIDFile) Remove() error

Remove removes the PIDFile.

Source Files

pidfile.go pidfile_unix.go

Version
v17.11.0-ce+incompatible
Published
Nov 20, 2017
Platform
js/wasm
Imports
7 packages
Last checked
3 hours ago

Tools for package owners.