pidfile

package module
v0.0.0-...-42b8f4e 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: 1 module, 1 package

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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
⌂ 换网址