service

package module
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2023 License: MIT Imports: 7 Imported by: 0

README

About service

This is a very simple package I use for supporting service daemons. This is designed to optionally use systemd on GNU/Linux systems, and supports generic service daemon execution on other (BSD) posix platforms. It provides interfaces for both accessing service features and logging. No specific service functionality is currently offered for Microsoft Windows.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Debug

func Debug(level int, args ...interface{})

func Error

func Error(args ...interface{})

Log errors

func Fail

func Fail(code int, args ...interface{})

Log failure and exit

func Info

func Info(args ...interface{})

Log info

func IsDebug

func IsDebug() bool

func Live

func Live(args ...interface{}) error

func Logger

func Logger(level int, path string)

func LoggerRestart

func LoggerRestart()

Reset Logger such as from sighup

func Notice

func Notice(args ...interface{})

Log notices

func Output

func Output(level int, args ...interface{})

Verbose output

func Reload

func Reload(args ...interface{}) error

func Status

func Status(status string) error

func Stop

func Stop(args ...interface{}) error

func Warn

func Warn(args ...interface{})

Log warnings

func Watchdog

func Watchdog() error

Types

This section is empty.

Jump to

Keyboard shortcuts

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