docker: github.com/docker/docker/pkg/pidfile Index | Files

package pidfile

import "github.com/docker/docker/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

Package Files

pidfile.go pidfile_unix.go

type PIDFile Uses

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

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

func New Uses

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

New creates a PIDfile using the specified path.

func (PIDFile) Remove Uses

func (file PIDFile) Remove() error

Remove removes the PIDFile.

Package pidfile imports 7 packages (graph) and is imported by 70 packages. Updated 2019-09-14. Refresh now. Tools for package owners.