From 5ab7ce2c8f38cc0ca92d711f7c4f3ea70d347702 Mon Sep 17 00:00:00 2001 From: Daniel Theophanes Date: Tue, 1 Sep 2015 09:34:29 -0700 Subject: [PATCH] service: fix misc typos. --- console.go | 2 +- example/logging/main.go | 2 +- example/runner/runner.go | 2 +- example/simple/main.go | 2 +- example/stopPause/main.go | 2 +- name_test.go | 2 +- service.go | 2 +- service_darwin.go | 2 +- service_linux.go | 2 +- service_systemd_linux.go | 2 +- service_sysv_linux.go | 2 +- service_test.go | 4 ++-- service_unix.go | 2 +- service_upstart_linux.go | 2 +- service_windows.go | 2 +- service_windows_test.go | 14 ++++++++++++++ 16 files changed, 30 insertions(+), 16 deletions(-) create mode 100644 service_windows_test.go diff --git a/console.go b/console.go index f799f37..ff03375 100644 --- a/console.go +++ b/console.go @@ -1,6 +1,6 @@ // Copyright 2015 Daniel Theophanes. // Use of this source code is governed by a zlib-style -// license that can be found in the LICENSE file.package service +// license that can be found in the LICENSE file. package service diff --git a/example/logging/main.go b/example/logging/main.go index 6fd72c3..b017abd 100644 --- a/example/logging/main.go +++ b/example/logging/main.go @@ -1,6 +1,6 @@ // Copyright 2015 Daniel Theophanes. // Use of this source code is governed by a zlib-style -// license that can be found in the LICENSE file.package service +// license that can be found in the LICENSE file. // Simple service that only works by printing a log message every few seconds. package main diff --git a/example/runner/runner.go b/example/runner/runner.go index 86e8a39..ae23a22 100644 --- a/example/runner/runner.go +++ b/example/runner/runner.go @@ -1,6 +1,6 @@ // Copyright 2015 Daniel Theophanes. // Use of this source code is governed by a zlib-style -// license that can be found in the LICENSE file.package service +// license that can be found in the LICENSE file. // Simple service that only works by printing a log message every few seconds. package main diff --git a/example/simple/main.go b/example/simple/main.go index b8909bf..2ec9f46 100644 --- a/example/simple/main.go +++ b/example/simple/main.go @@ -1,6 +1,6 @@ // Copyright 2015 Daniel Theophanes. // Use of this source code is governed by a zlib-style -// license that can be found in the LICENSE file.package service +// license that can be found in the LICENSE file. // simple does nothing except block while running the service. package main diff --git a/example/stopPause/main.go b/example/stopPause/main.go index 8d0fdfe..ec7d598 100644 --- a/example/stopPause/main.go +++ b/example/stopPause/main.go @@ -1,6 +1,6 @@ // Copyright 2015 Daniel Theophanes. // Use of this source code is governed by a zlib-style -// license that can be found in the LICENSE file.package service +// license that can be found in the LICENSE file. // simple does nothing except block while running the service. package main diff --git a/name_test.go b/name_test.go index 3e02b5c..7f7afe9 100644 --- a/name_test.go +++ b/name_test.go @@ -1,6 +1,6 @@ // Copyright 2015 Daniel Theophanes. // Use of this source code is governed by a zlib-style -// license that can be found in the LICENSE file.package service +// license that can be found in the LICENSE file. package service diff --git a/service.go b/service.go index d2d8e37..ca0c83d 100644 --- a/service.go +++ b/service.go @@ -1,6 +1,6 @@ // Copyright 2015 Daniel Theophanes. // Use of this source code is governed by a zlib-style -// license that can be found in the LICENSE file.package service +// license that can be found in the LICENSE file. // Package service provides a simple way to create a system service. // Currently supports Windows, Linux/(systemd | Upstart | SysV), and OSX/Launchd. diff --git a/service_darwin.go b/service_darwin.go index 7386c0f..a8278b3 100644 --- a/service_darwin.go +++ b/service_darwin.go @@ -1,6 +1,6 @@ // Copyright 2015 Daniel Theophanes. // Use of this source code is governed by a zlib-style -// license that can be found in the LICENSE file.package service +// license that can be found in the LICENSE file. package service diff --git a/service_linux.go b/service_linux.go index 550decd..64158d8 100644 --- a/service_linux.go +++ b/service_linux.go @@ -1,6 +1,6 @@ // Copyright 2015 Daniel Theophanes. // Use of this source code is governed by a zlib-style -// license that can be found in the LICENSE file.package service +// license that can be found in the LICENSE file. package service diff --git a/service_systemd_linux.go b/service_systemd_linux.go index 5bb1cfc..cbcf787 100644 --- a/service_systemd_linux.go +++ b/service_systemd_linux.go @@ -1,6 +1,6 @@ // Copyright 2015 Daniel Theophanes. // Use of this source code is governed by a zlib-style -// license that can be found in the LICENSE file.package service +// license that can be found in the LICENSE file. package service diff --git a/service_sysv_linux.go b/service_sysv_linux.go index bc15fab..625fbb7 100644 --- a/service_sysv_linux.go +++ b/service_sysv_linux.go @@ -1,6 +1,6 @@ // Copyright 2015 Daniel Theophanes. // Use of this source code is governed by a zlib-style -// license that can be found in the LICENSE file.package service +// license that can be found in the LICENSE file. package service diff --git a/service_test.go b/service_test.go index 71d4def..691fd74 100644 --- a/service_test.go +++ b/service_test.go @@ -1,6 +1,6 @@ // Copyright 2015 Daniel Theophanes. // Use of this source code is governed by a zlib-style -// license that can be found in the LICENSE file.package service +// license that can be found in the LICENSE file. package service_test @@ -55,7 +55,7 @@ func TestInstallRunRestartStopRemove(t *testing.T) { } err = s.Uninstall() if err != nil { - t.Fatal("stop", err) + t.Fatal("uninstall", err) } } diff --git a/service_unix.go b/service_unix.go index 19faf91..1ea387f 100644 --- a/service_unix.go +++ b/service_unix.go @@ -1,6 +1,6 @@ // Copyright 2015 Daniel Theophanes. // Use of this source code is governed by a zlib-style -// license that can be found in the LICENSE file.package service +// license that can be found in the LICENSE file. // +build linux darwin diff --git a/service_upstart_linux.go b/service_upstart_linux.go index 7cd17fd..3703ece 100644 --- a/service_upstart_linux.go +++ b/service_upstart_linux.go @@ -1,6 +1,6 @@ // Copyright 2015 Daniel Theophanes. // Use of this source code is governed by a zlib-style -// license that can be found in the LICENSE file.package service +// license that can be found in the LICENSE file. package service diff --git a/service_windows.go b/service_windows.go index ae5b0d8..f081dd0 100644 --- a/service_windows.go +++ b/service_windows.go @@ -1,6 +1,6 @@ // Copyright 2015 Daniel Theophanes. // Use of this source code is governed by a zlib-style -// license that can be found in the LICENSE file.package service +// license that can be found in the LICENSE file. package service diff --git a/service_windows_test.go b/service_windows_test.go new file mode 100644 index 0000000..5a6460e --- /dev/null +++ b/service_windows_test.go @@ -0,0 +1,14 @@ +// Copyright 2015 Daniel Theophanes. +// Use of this source code is governed by a zlib-style +// license that can be found in the LICENSE file. + +package service + +import ( + "testing" +) + +func TestTimeout(t *testing.T) { + stopSpan := getStopTimeout() + t.Log("Max Stop Duration", stopSpan) +}