svc

package
v1.0.58 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2022 License: Zlib Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DoService

func DoService(conf Config, startService func(isWindowsService bool), stopService func())

func InstallService

func InstallService(appPath, name, desc string, params ...string) error

func IsWindowsService

func IsWindowsService() bool

func QueryService

func QueryService(name string) (status string, err error)

func RemoveService

func RemoveService(name string) error

func RunAsService

func RunAsService(name string, start func(isWindowsService bool), stop func(), isDebug bool) (err error)

func StartService

func StartService(name string) error

func StopService

func StopService(name string) error

Types

type Config

type Config struct {
	ServiceName string `json:"serviceName" yaml:"serviceName" xml:"serviceName"`
	ServiceDesc string `json:"serviceDesc" yaml:"serviceDesc" xml:"serviceDesc"`
}

Jump to

Keyboard shortcuts

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