diff --git a/README b/README index 5a18306..cc829ea 100644 --- a/README +++ b/README @@ -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? diff --git a/name_test.go b/name_test.go index 29fd4ce..3e02b5c 100644 --- a/name_test.go +++ b/name_test.go @@ -9,5 +9,5 @@ import ( ) func TestPlatformName(t *testing.T) { - t.Logf("Platform is %v", Local) + t.Logf("Platform is %v", Platform()) } diff --git a/service.go b/service.go index 6e7a5e1..1fd7935 100644 --- a/service.go +++ b/service.go @@ -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.