watchdog

package
v1.9.5 Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2020 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CommandName = "watchdog"

Functions

func Main

func Main()

使用默认方法,直接从命令行提取参数 Examples:

func main() {
    watchdog.Main()
}

func Run

func Run(workingDir string, opType string, programPath string)

执行watchdog workingDir 当前工作目录 opType 命令,start 或者 stop programPath 二进制程序文件路径 执行start成功,在当前工作目录生成 watchdog.pid 文件

Types

This section is empty.

Jump to

Keyboard shortcuts

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