service: remove DependsOn. Update documentation. Fix test.

This commit is contained in:
Daniel Theophanes
2015-01-18 16:58:47 -08:00
parent b7b2695e94
commit 20f13ca16f
3 changed files with 18 additions and 9 deletions
+16 -6
View File
@@ -3,13 +3,23 @@ Currently supports Windows XP+, Linux/(systemd | Upstart | SysV), and OSX/Launch
To start out follow "example/main.go".
This package is still in BETA. Detecting if this is running as a daemon or from a
user is not tested on all platforms. It is tested on Windows and Linux Upstart
system service. Need to test the following platforms:
* Upstart, user service
This package is still in BETA.
Need to test the Interactive test for the following platforms:
* SysV
* systemd system and user service
* Launchd system and user service
Also the remainder of the configuration struct needs to be wired into the install
step for most platforms. Platform capabilities and KeyValues need documentation.
The following items need to be done:
* Determine if systemd has a launchd equivalent user service.
* Fix Interactive test for user services.
* Document that windows doesn't have a user service.
* Document that upstart's user service definition changes over versions. Do not support.
* For Linux platforms and Launchd add:
- UserName
- Arguments
- WorkingDirectory
- ChRoot
* Determine the best way to document the Config.Option values per platform.
- Should some of the current parameters like "ChRoot" and "WorkingDirectory" move to "Option" map?
+1 -1
View File
@@ -9,5 +9,5 @@ import (
)
func TestPlatformName(t *testing.T) {
t.Logf("Platform is %v", Local)
t.Logf("Platform is %v", Platform())
}
+1 -2
View File
@@ -129,8 +129,7 @@ type Config struct {
UserName string // Run as username.
Arguments []string // Run with arguments.
DependsOn []string // Other services that this depends on.
WorkingDirectory string // Service working directory.
WorkingDirectory string // Service working directory.
ChRoot string
UserService bool // Install as a current user service.