https://github.com/vanng822/gopid
Simple handling of pid file
https://github.com/vanng822/gopid
Last synced: 2 months ago
JSON representation
Simple handling of pid file
- Host: GitHub
- URL: https://github.com/vanng822/gopid
- Owner: vanng822
- License: mit
- Created: 2015-01-24T11:15:23.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2025-12-17T20:19:00.000Z (6 months ago)
- Last Synced: 2025-12-25T14:55:54.170Z (6 months ago)
- Language: Go
- Homepage:
- Size: 19.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# gopid
Simple handling of pid file, like checking, creating and cleaning up pid file
## GoDoc
[](https://godoc.org/github.com/vanng822/gopid)
## Example
import (
"github.com/vanng822/gopid"
)
func main() {
// code for getting pidFile and force
gopid.CheckPid(pidFile, force)
gopid.CreatePid(pidFile)
defer gopid.CleanPid(pidFile)
// running your code
}