homecommon

package
v0.0.0-...-e72d04d Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2023 License: GPL-3.0 Imports: 15 Imported by: 2

Documentation

Index

Constants

View Source
const (
	O_ANY          = 0
	O_LINUX        = 1
	USER_RUN_DIR   = "/run/user"
	GLOBAL_RUN_DIR = "/var/run"
)

Variables

This section is empty.

Functions

func CheckPrerequisites

func CheckPrerequisites(flag int, confFilePath string, requiredCommands []string)

func CreatePidFile

func CreatePidFile() *fslock.Lock

func Execute

func Execute(sudo bool, check bool, command []string) (int, string, string)

func GetConf

func GetConf[C any](configFile string) *C

func GetPid

func GetPid(progName string) int

func IpcGetData

func IpcGetData[T any](progName string, funcName string, args any) (T, error)

func IpcGetStatus

func IpcGetStatus(progName string) (int, error)

func Signal

func Signal() chan os.Signal

func StartIpc

func StartIpc(progName string, rcvrs ...any) error

func Stop

func Stop(progName string)

func StopIpc

func StopIpc(progName string) error

Types

type Nothing

type Nothing int

type Pid

type Pid int

func (*Pid) GetStatus

func (s *Pid) GetStatus(args *Nothing, pid *int) error

Jump to

Keyboard shortcuts

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