Merge pull request #3 from nollan/windep

Add support for Windows Service dependencies
This commit is contained in:
Daniel Theophanes
2015-02-28 06:34:31 -08:00
2 changed files with 5 additions and 3 deletions
+4 -3
View File
@@ -69,9 +69,10 @@ import (
// Config provides the setup for a Service. The Name field is required.
type Config struct {
Name string // Required name of the service. No spaces suggested.
DisplayName string // Display name, spaces allowed.
Description string // Long description of service.
Name string // Required name of the service. No spaces suggested.
DisplayName string // Display name, spaces allowed.
Description string // Long description of service.
Dependencies []string // Array of service dependencies.
UserName string // Run as username.
Arguments []string // Run with arguments.
+1
View File
@@ -195,6 +195,7 @@ func (ws *windowsService) Install() error {
StartType: mgr.StartAutomatic,
ServiceStartName: ws.UserName,
Password: ws.Option.string("Password", ""),
Dependencies: ws.Dependencies,
})
if err != nil {
return err