rename
This commit is contained in:
@@ -10,13 +10,14 @@ import (
|
||||
"log"
|
||||
"time"
|
||||
|
||||
"github.com/kardianos/service"
|
||||
"git.company.lan/gopkg/service"
|
||||
)
|
||||
|
||||
var logger service.Logger
|
||||
|
||||
// Program structures.
|
||||
// Define Start and Stop methods.
|
||||
//
|
||||
// Define Start and Stop methods.
|
||||
type program struct {
|
||||
exit chan struct{}
|
||||
}
|
||||
@@ -54,11 +55,12 @@ func (p *program) Stop(s service.Service) error {
|
||||
}
|
||||
|
||||
// Service setup.
|
||||
// Define service config.
|
||||
// Create the service.
|
||||
// Setup the logger.
|
||||
// Handle service controls (optional).
|
||||
// Run the service.
|
||||
//
|
||||
// Define service config.
|
||||
// Create the service.
|
||||
// Setup the logger.
|
||||
// Handle service controls (optional).
|
||||
// Run the service.
|
||||
func main() {
|
||||
svcFlag := flag.String("service", "", "Control the system service.")
|
||||
flag.Parse()
|
||||
|
||||
@@ -14,7 +14,7 @@ import (
|
||||
"os/exec"
|
||||
"path/filepath"
|
||||
|
||||
"github.com/kardianos/service"
|
||||
"git.company.lan/gopkg/service"
|
||||
)
|
||||
|
||||
// Config is the runner app config structure.
|
||||
|
||||
@@ -8,7 +8,7 @@ package main
|
||||
import (
|
||||
"log"
|
||||
|
||||
"github.com/kardianos/service"
|
||||
"git.company.lan/gopkg/service"
|
||||
)
|
||||
|
||||
var logger service.Logger
|
||||
|
||||
@@ -10,7 +10,7 @@ import (
|
||||
"os"
|
||||
"time"
|
||||
|
||||
"github.com/kardianos/service"
|
||||
"git.company.lan/gopkg/service"
|
||||
)
|
||||
|
||||
var logger service.Logger
|
||||
|
||||
Reference in New Issue
Block a user