daemoncmd

package
v0.0.39 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2026 License: MIT Imports: 14 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DoStop

func DoStop(pidFile string) error

DoStop is the testable core of the stop command. pidFile is injected for hermetic testing.

func NewRestartCommand

func NewRestartCommand() *cobra.Command

NewRestartCommand returns the "restart" cobra command.

func NewServerCommand

func NewServerCommand() *cobra.Command

NewServerCommand returns the "server" cobra command.

func NewStatusCommand

func NewStatusCommand(exitCode ExitCodeFunc) *cobra.Command

NewStatusCommand returns the "status" cobra command. exitCode is invoked to signal a non-zero process exit when the daemon is not running.

func NewStopCommand

func NewStopCommand() *cobra.Command

NewStopCommand returns the "stop" cobra command.

Types

type ExitCodeFunc

type ExitCodeFunc func(int) error

ExitCodeFunc is a function that converts an integer exit code into an error value that the CLI runner recognises and converts to os.Exit(code).

Jump to

Keyboard shortcuts

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