daemon

package
v0.0.0-...-79a6dd7 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2026 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Daemon

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

Daemon manages the AgentShield server process

func NewDaemon

func NewDaemon(cfg *config.Config) (*Daemon, error)

NewDaemon creates a new daemon instance

func (*Daemon) Reload

func (d *Daemon) Reload() error

Reload sends SIGHUP to reload rules

func (*Daemon) SetPIDFile

func (d *Daemon) SetPIDFile(path string)

SetPIDFile overrides the default PID file path.

func (*Daemon) SetPIDFileManagement

func (d *Daemon) SetPIDFileManagement(enabled bool)

SetPIDFileManagement toggles PID file lifecycle management.

func (*Daemon) Start

func (d *Daemon) Start() error

Start starts the daemon

func (*Daemon) Status

func (d *Daemon) Status() error

Status checks if the daemon is running

func (*Daemon) Stop

func (d *Daemon) Stop() error

Stop stops a running daemon by sending SIGTERM

Jump to

Keyboard shortcuts

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