daemon

package
v0.0.13 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2025 License: MIT Imports: 21 Imported by: 0

Documentation

Index

Constants

View Source
const DATA_ZIP_URL = "https://gitee.com/void_kmz/kd/releases/download/v0.0.1/kd_data.zip"

Variables

View Source
var DaemonInfo = &model.RunInfo{}
View Source
var SYSTEMD_UNIT_NAME = "kd-server"

Functions

func FindServerProcess

func FindServerProcess() (*process.Process, error)

func GetDaemonInfo added in v0.0.5

func GetDaemonInfo() (*model.RunInfo, error)

func GetDaemonInfoFromFile added in v0.0.6

func GetDaemonInfoFromFile() (*model.RunInfo, error)

func GetDaemonInfoPath added in v0.0.6

func GetDaemonInfoPath() string

func InitCron

func InitCron()

func KillDaemonIfRunning

func KillDaemonIfRunning() error

func RestartDaemon added in v0.0.9

func RestartDaemon() error

func SendHUP2Daemon added in v0.0.9

func SendHUP2Daemon() error

TODO (k): <2024-05-05 15:56>

func ServerIsRunning

func ServerIsRunning() bool

func StartDaemonProcess

func StartDaemonProcess() error

Types

This section is empty.

Jump to

Keyboard shortcuts

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