utils

package
v0.0.0-...-ca7731e Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2016 License: Apache-2.0 Imports: 7 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MonitorProcess

func MonitorProcess(pidFile string, exitChan chan struct{})

MonitorProcess monitor that the process identified by the pid in the given file is running. When the process stops or exits, it will send a signal on the given channel.

func ReadPID

func ReadPID(file string) (int, error)

ReadPID returns the pid from the content of a pid file

Types

This section is empty.

Jump to

Keyboard shortcuts

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