pidfile

package module
v0.0.0-...-f242e29 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2015 License: BSD-3-Clause Imports: 9 Imported by: 66

README

pidfile Build Status

Package pidfile manages pid files: http://godoc.org/github.com/facebookgo/pidfile

Documentation

Overview

Package pidfile manages pid files.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetPidfilePath

func GetPidfilePath() string

GetPidfilePath returns the configured pidfile path.

func IsNotConfigured

func IsNotConfigured(err error) bool

IsNotConfigured returns true if the error indicates the pidfile location has not been configured.

func Read

func Read() (int, error)

Read the pid from the configured file. It is an error if the pidfile hasn't been configured.

func SetPidfilePath

func SetPidfilePath(p string)

SetPidfilePath sets the pidfile path.

func Write

func Write() error

Write the pidfile based on the flag. It is an error if the pidfile hasn't been configured.

Types

This section is empty.

Jump to

Keyboard shortcuts

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