Discover Packages
gitee.com/zhujingfeng/pidfile
package
module
Version:
v0.0.0-...-25d5d2a
Opens a new window with list of versions in this module.
Published: Jun 2, 2021
License: Apache-2.0
Opens a new window with license information.
Imports: 6
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
README
¶
pidfile
pidfiles for golang
Expand ▾
Collapse ▴
Documentation
¶
View Source
var (
ErrProcessRunning = errors .New ("process is running")
ErrFileStale = errors .New ("pidfile exists but process is not running")
ErrFileInvalid = errors .New ("pidfile has invalid contents")
)
Write writes a pidfile, returning an error
if the process is already running or pidfile is orphaned
如果判断Old进程仍在运行,同时返回进程的可执行文件路径
Write writes a pidfile, returning an error
如果判断Old进程仍在运行,同时返回进程的可执行文件路径
Source Files
¶
Click to show internal directories.
Click to hide internal directories.