pidfile

package
v1.13.1-rc2 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2017 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

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

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PIDFile added in v1.9.0

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 added in v1.9.0

func (file PIDFile) Remove() error

Remove removes the PIDFile.

Jump to

Keyboard shortcuts

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