https://github.com/vanng822/gopid
Simple handling of pid file
https://github.com/vanng822/gopid
Last synced: about 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 10 years ago)
- Default Branch: master
- Last Pushed: 2024-11-26T11:04:40.000Z (5 months ago)
- Last Synced: 2025-01-18T05:27:32.869Z (3 months ago)
- Language: Go
- Homepage:
- Size: 12.7 KB
- Stars: 0
- Watchers: 3
- 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
}