winservice

package module
v0.0.0-...-3fec5ec Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2016 License: MIT Imports: 5 Imported by: 0

README

winservice

Build status GoDoc

Library and cli for controlling Windows services from golang

Code originally based on [bosun/cmd/scollector/service_windows.go] (https://raw.githubusercontent.com/bosun-monitor/bosun/7f58630a746ceb2a52f98b73b66c09425b847c80/cmd/scollector/service_windows.go)

License

Under MIT

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Control

func Control(name string, c svc.Cmd, to svc.State) error

Control a service by name

func Install

func Install(name, desc, exepath string) error

Install a new service

func Remove

func Remove(name string) error

Remove a service by name

func Start

func Start(name string) error

Start a service by name

func Stop

func Stop(name string) error

Stop a service by name

Types

This section is empty.

Directories

Path Synopsis
cmd
svc

Jump to

Keyboard shortcuts

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