mirror of
https://github.com/kardianos/service.git
synced 2025-10-04 08:26:27 +08:00
service: fix misc typos.
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
// Copyright 2015 Daniel Theophanes.
|
// Copyright 2015 Daniel Theophanes.
|
||||||
// Use of this source code is governed by a zlib-style
|
// 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
|
package service
|
||||||
|
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
// Copyright 2015 Daniel Theophanes.
|
// Copyright 2015 Daniel Theophanes.
|
||||||
// Use of this source code is governed by a zlib-style
|
// 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.
|
// Simple service that only works by printing a log message every few seconds.
|
||||||
package main
|
package main
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
// Copyright 2015 Daniel Theophanes.
|
// Copyright 2015 Daniel Theophanes.
|
||||||
// Use of this source code is governed by a zlib-style
|
// 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.
|
// Simple service that only works by printing a log message every few seconds.
|
||||||
package main
|
package main
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
// Copyright 2015 Daniel Theophanes.
|
// Copyright 2015 Daniel Theophanes.
|
||||||
// Use of this source code is governed by a zlib-style
|
// 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.
|
// simple does nothing except block while running the service.
|
||||||
package main
|
package main
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
// Copyright 2015 Daniel Theophanes.
|
// Copyright 2015 Daniel Theophanes.
|
||||||
// Use of this source code is governed by a zlib-style
|
// 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.
|
// simple does nothing except block while running the service.
|
||||||
package main
|
package main
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
// Copyright 2015 Daniel Theophanes.
|
// Copyright 2015 Daniel Theophanes.
|
||||||
// Use of this source code is governed by a zlib-style
|
// 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
|
package service
|
||||||
|
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
// Copyright 2015 Daniel Theophanes.
|
// Copyright 2015 Daniel Theophanes.
|
||||||
// Use of this source code is governed by a zlib-style
|
// 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.
|
// Package service provides a simple way to create a system service.
|
||||||
// Currently supports Windows, Linux/(systemd | Upstart | SysV), and OSX/Launchd.
|
// Currently supports Windows, Linux/(systemd | Upstart | SysV), and OSX/Launchd.
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
// Copyright 2015 Daniel Theophanes.
|
// Copyright 2015 Daniel Theophanes.
|
||||||
// Use of this source code is governed by a zlib-style
|
// 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
|
package service
|
||||||
|
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
// Copyright 2015 Daniel Theophanes.
|
// Copyright 2015 Daniel Theophanes.
|
||||||
// Use of this source code is governed by a zlib-style
|
// 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
|
package service
|
||||||
|
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
// Copyright 2015 Daniel Theophanes.
|
// Copyright 2015 Daniel Theophanes.
|
||||||
// Use of this source code is governed by a zlib-style
|
// 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
|
package service
|
||||||
|
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
// Copyright 2015 Daniel Theophanes.
|
// Copyright 2015 Daniel Theophanes.
|
||||||
// Use of this source code is governed by a zlib-style
|
// 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
|
package service
|
||||||
|
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
// Copyright 2015 Daniel Theophanes.
|
// Copyright 2015 Daniel Theophanes.
|
||||||
// Use of this source code is governed by a zlib-style
|
// 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
|
package service_test
|
||||||
|
|
||||||
@@ -55,7 +55,7 @@ func TestInstallRunRestartStopRemove(t *testing.T) {
|
|||||||
}
|
}
|
||||||
err = s.Uninstall()
|
err = s.Uninstall()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
t.Fatal("stop", err)
|
t.Fatal("uninstall", err)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
// Copyright 2015 Daniel Theophanes.
|
// Copyright 2015 Daniel Theophanes.
|
||||||
// Use of this source code is governed by a zlib-style
|
// 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
|
// +build linux darwin
|
||||||
|
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
// Copyright 2015 Daniel Theophanes.
|
// Copyright 2015 Daniel Theophanes.
|
||||||
// Use of this source code is governed by a zlib-style
|
// 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
|
package service
|
||||||
|
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
// Copyright 2015 Daniel Theophanes.
|
// Copyright 2015 Daniel Theophanes.
|
||||||
// Use of this source code is governed by a zlib-style
|
// 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
|
package service
|
||||||
|
|
||||||
|
14
service_windows_test.go
Normal file
14
service_windows_test.go
Normal file
@@ -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)
|
||||||
|
}
|
Reference in New Issue
Block a user