pid

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2018 License: Apache-2.0 Imports: 6 Imported by: 2

Documentation

Overview

Package pid 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 File

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

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

func New

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

New creates a PID file using the specified path.

func (File) Remove

func (file File) Remove() error

Remove removes the File.

Jump to

Keyboard shortcuts

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