chg1f / pidfile

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Pidfile

test workflow

Intro

Easily generate and cleanup golang programs pidfile

Quick Start

import "github.com/chg1f/pidfile"

func main(){
  defer pidfile.Generate("/var/run/example.pid").Cleanup()
  // do anything
}

Documents visit https://pkg.go.dev/github.com/chg1f/pidfile

About

License:MIT License


Languages

Language:Go 100.0%