service

package module
v0.0.0-...-95af53b Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2015 License: Zlib Imports: 7 Imported by: 26

README

Moving to https://github.com/kardianos/service
The github repository uses a new API along with more features.
If you are using the alpha config struct, you should consider moving.

service will install / un-install, start / stop, and run a program as a service (daemon).
Currently supports Windows XP+, Linux/(systemd | Upstart | SysV), and OSX/Launchd.

To start out follow "example/main.go".

Documentation

Overview

Moving to https://github.com/kardianos/service The github repository uses a new API along with more features. If you are using the alpha config struct, you should consider moving.

Package service provides a simple way to create a system service. Currently supports Windows, Linux/(systemd | Upstart | SysV), and OSX/Launchd.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetExePath

func GetExePath() (exePath string, err error)

Depreciated. Use osext.Executable instead. Returns the full path of the running executable as reported by the system. Includes the executable image name.

Types

type Config

type Config struct {
	Name, DisplayName, Description string

	UserName  string   // Run as username.
	Arguments []string // Run with arguments.

	DependsOn        []string // Other services that this depends on.
	WorkingDirectory string   // Service working directory.
	ChRoot           string
	UserService      bool // Install as a current user service.

	// System specific parameters.
	KV KeyValue
}

Alpha API. Do not yet use.

type Controller