package
Version:
v1.4.0-pre.0
Opens a new window with list of versions in this module.
Published: Dec 13, 2024
License: Apache-2.0
Opens a new window with license information.
Imports: 8
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
View Source
var (
ErrPidFileAccess = errors.New("pid file access failed")
ErrPidIsNotAlive = errors.New("process is not alive")
ErrPidIsStillAlive = errors.New("process is already running")
)
Create() Creates a Pid file
On success returns:
The current PID and nil on success
On failure returns:
Returns old pid if still running and PidIsStillAlive error
Or returns zero and an error
Source Files
¶
Click to show internal directories.
Click to hide internal directories.