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 ¶
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.