Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

typo #316

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

typo #316

Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions service.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
// Currently supports Windows, Linux/(systemd | Upstart | SysV | OpenRC), and OSX/Launchd.
//
// Windows controls services by setting up callbacks that is non-trivial. This
// is very different then other systems. This package provides the same API
// is very different than other systems. This package provides the same API
// despite the substantial differences.
// It also can be used to detect how a program is called, from an interactive
// terminal or from a service manager.
Expand Down Expand Up @@ -331,11 +331,11 @@ type System interface {
type Interface interface {
// Start provides a place to initiate the service. The service doesn't
// signal a completed start until after this function returns, so the
// Start function must not take more then a few seconds at most.
// Start function must not take more than a few seconds at most.
Start(s Service) error

// Stop provides a place to clean up program execution before it is terminated.
// It should not take more then a few seconds to execute.
// It should not take more than a few seconds to execute.
// Stop should not call os.Exit directly in the function.
Stop(s Service) error
}
Expand Down Expand Up @@ -377,7 +377,7 @@ type Service interface {
Uninstall() error

// Opens and returns a system logger. If the user program is running
// interactively rather then as a service, the returned logger will write to
// interactively rather than as a service, the returned logger will write to
// os.Stderr. If errs is non-nil errors will be sent on errs as well as
// returned from Logger's functions.
Logger(errs chan<- error) (Logger, error)
Expand Down