daemon

package
v0.9.2 Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Start

func Start(ipt *iptables.IPTablesInstance, rulesFile string) int

Start run fwdctl in daemon mode The flow has the following steps: - Open the rules file - Create all the defined forwards - Start listening on rules file changes - When file changes:

  • Calculate the Diff between old and new ruleset
  • Delete unwanted forwards
  • Create wanted forawrds

- Listen for SIGTERM signals to gracefuly shutdown - When SIGTERM signal occurs:

  • Delete all the applied forwards
  • Shutdown the daemon

func Stop

func Stop()

Stop send a SIGTERM signal to the daemon process

Types

This section is empty.

Jump to

Keyboard shortcuts

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