pidfile

package
v0.0.0-...-14ae682 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 19, 2021 License: MIT Imports: 6 Imported by: 0

README

Package pidfile is derived from github.com/moby/moby/pkg/pidfile.

Moby is licensed under the Apache License, Version 2.0. Copyright 2012-2017 Docker, Inc.

Documentation

Overview

Package pidfile provides structure and helper functions to create and remove PID file. A PID file is usually a file used to store the process ID of a running process.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MkdirAll

func MkdirAll(path string, perm os.FileMode) error

MkdirAll creates a directory named path along with any necessary parents, with permission specified by attribute perm for all dir created.

Types

type PIDFile

type PIDFile struct {
	// contains filtered or unexported fields
}

PIDFile is a file used to store the process ID of a running process.

func New

func New(path string) (*PIDFile, error)

New creates a PIDfile using the specified path.

func (PIDFile) Remove

func (file PIDFile) Remove() error

Remove removes the PIDFile.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL