service: remove unused const.
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
service will install / un-install, start / stop, and run a program as a service (daemon).
|
service will install / un-install, start / stop, and run a program as a service (daemon).
|
||||||
Currently supports Windows XP+, Linux/(systemd | Upstart), and OSX/Launchd.
|
Currently supports Windows XP+, Linux/(systemd | Upstart | SysV), and OSX/Launchd.
|
||||||
|
|
||||||
To start out follow "example/main.go".
|
To start out follow "example/main.go".
|
||||||
|
|||||||
+1
-1
@@ -1,5 +1,5 @@
|
|||||||
// 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), and OSX/Launchd.
|
// Currently supports Windows, Linux/(systemd | Upstart | SysV), and OSX/Launchd.
|
||||||
package service
|
package service
|
||||||
|
|
||||||
import "bitbucket.org/kardianos/osext"
|
import "bitbucket.org/kardianos/osext"
|
||||||
|
|||||||
@@ -17,8 +17,6 @@ const (
|
|||||||
initSystemd
|
initSystemd
|
||||||
)
|
)
|
||||||
|
|
||||||
const systemOs = "linux"
|
|
||||||
|
|
||||||
func getFlavor() initFlavor {
|
func getFlavor() initFlavor {
|
||||||
flavor := initSystemV
|
flavor := initSystemV
|
||||||
if isUpstart() {
|
if isUpstart() {
|
||||||
|
|||||||
Reference in New Issue
Block a user