daemon

package
v1.9.0 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package daemon is the daemon implementation.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

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

Config is the daemon config

func NewPIDFile

func NewPIDFile(pidfile string) (*Config, error)

NewPIDFile create a new pid file

func (*Config) CheckPIDFile

func (c *Config) CheckPIDFile() (int, error)

CheckPIDFile check if the pid file exists if the PID file exists, return the PID of the process if the PID file does not exist, return -1

func (*Config) RemovePIDFile

func (c *Config) RemovePIDFile() error

RemovePIDFile remove the pid file

Jump to

Keyboard shortcuts

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