systemservice

package
v0.0.0-...-137c36e Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DarwinParams

type DarwinParams struct {
	StandardOutFileName     string
	StandardErrorFileName   string
	Umask                   string
	ExitTimeOut             int64
	Nice                    int64
	ProcessType             string
	LowPriorityIO           bool
	LowPriorityBackgroundIO bool
}

type Params

type Params struct {
	ServiceCommonName        string
	SystemServiceName        string
	SystemServiceDisplayName string
	SystemServiceDescription string
	ExecutableFileName       string
	ExecutableArguments      []string
	DarwinParams             DarwinParams
	WindowsParams            WindowsParams
}

type SystemService

type SystemService struct {
	sync.Mutex
	// contains filtered or unexported fields
}

func NewSystemService

func NewSystemService(params *Params, serviceInterface service.Interface) *SystemService

func (*SystemService) CommonName

func (s *SystemService) CommonName() string

func (*SystemService) Install

func (s *SystemService) Install() error

func (*SystemService) InstallWithExtraArguments

func (s *SystemService) InstallWithExtraArguments(args ...string) (err error)

func (*SystemService) Setup

func (s *SystemService) Setup() error

func (*SystemService) Start

func (s *SystemService) Start() error

func (*SystemService) Status

func (s *SystemService) Status() (status string, err error)

func (*SystemService) Stop

func (s *SystemService) Stop() error

func (*SystemService) Uninstall

func (s *SystemService) Uninstall() error

type WindowsParams

type WindowsParams struct {
	Dependencies []string
	UserName     string
}

Jump to

Keyboard shortcuts

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