Commit 14746dc3 authored by Dave Collins's avatar Dave Collins
Browse files

Update winsvc import paths to new location.

parent ad98eb04
......@@ -9,10 +9,11 @@
package debug
import (
"github.com/conformal/winsvc/svc"
"os"
"os/signal"
"syscall"
"github.com/btcsuite/winsvc/svc"
)
// Run executes service named name by calling appropriate handler function.
......
......@@ -7,10 +7,11 @@
package eventlog
import (
"github.com/conformal/winsvc/registry"
"github.com/conformal/winsvc/winapi"
"errors"
"syscall"
"github.com/btcsuite/winsvc/registry"
"github.com/btcsuite/winsvc/winapi"
)
const (
......
......@@ -9,9 +9,10 @@
package eventlog
import (
"github.com/conformal/winsvc/winapi"
"errors"
"syscall"
"github.com/btcsuite/winsvc/winapi"
)
// Log provides access to system log.
......
......@@ -7,8 +7,9 @@
package eventlog_test
import (
"github.com/conformal/winsvc/eventlog"
"testing"
"github.com/btcsuite/winsvc/eventlog"
)
func TestLog(t *testing.T) {
......
......@@ -7,11 +7,12 @@
package main
import (
"github.com/conformal/winsvc/eventlog"
"github.com/conformal/winsvc/mgr"
"fmt"
"os"
"path/filepath"
"github.com/btcsuite/winsvc/eventlog"
"github.com/btcsuite/winsvc/mgr"
)
func exePath() (string, error) {
......
......@@ -13,11 +13,12 @@
package main
import (
"github.com/conformal/winsvc/svc"
"fmt"
"log"
"os"
"strings"
"github.com/btcsuite/winsvc/svc"
)
func usage(errmsg string) {
......
......@@ -7,10 +7,11 @@
package main
import (
"github.com/conformal/winsvc/mgr"
"github.com/conformal/winsvc/svc"
"fmt"
"time"
"github.com/btcsuite/winsvc/mgr"
"github.com/btcsuite/winsvc/svc"
)
func startService(name string) error {
......
......@@ -7,11 +7,12 @@
package main
import (
"github.com/conformal/winsvc/debug"
"github.com/conformal/winsvc/eventlog"
"github.com/conformal/winsvc/svc"
"fmt"
"time"
"github.com/btcsuite/winsvc/debug"
"github.com/btcsuite/winsvc/eventlog"
"github.com/btcsuite/winsvc/svc"
)
var elog debug.Log
......
......@@ -7,14 +7,15 @@
package mgr
import (
"github.com/conformal/winsvc/winapi"
"syscall"
"unsafe"
"github.com/btcsuite/winsvc/winapi"
)
const (
// Service start types
StartManual = winapi.SERVICE_DEMAND_START // the service must be started manually
StartManual = winapi.SERVICE_DEMAND_START // the service must be started manually
StartAutomatic = winapi.SERVICE_AUTO_START // the service will start by itself whenever the computer reboots
StartDisabled = winapi.SERVICE_DISABLED // the service cannot be started
......
......@@ -12,8 +12,9 @@
package mgr
import (
"github.com/conformal/winsvc/winapi"
"syscall"
"github.com/btcsuite/winsvc/winapi"
)
// Mgr is used to manage Windows service.
......@@ -26,7 +27,7 @@ func Connect() (*Mgr, error) {
return ConnectRemote("")
}
// ConnectRemote establishes a connection to the
// ConnectRemote establishes a connection to the
// service control manager on computer named host.
func ConnectRemote(host string) (*Mgr, error) {
var s *uint16
......
......@@ -7,10 +7,11 @@
package mgr_test
import (
"github.com/conformal/winsvc/mgr"
"os"
"path/filepath"
"testing"
"github.com/btcsuite/winsvc/mgr"
)
func TestOpenLanManServer(t *testing.T) {
......
......@@ -7,9 +7,10 @@
package mgr
import (
"github.com/conformal/winsvc/svc"
"github.com/conformal/winsvc/winapi"
"syscall"
"github.com/btcsuite/winsvc/svc"
"github.com/btcsuite/winsvc/winapi"
)
// TODO(brainman): use EnumDependentServices to enumerate dependent services
......
......@@ -9,9 +9,10 @@
package registry
import (
"github.com/conformal/winsvc/winapi"
"syscall"
"unsafe"
"github.com/btcsuite/winsvc/winapi"
)
type Key struct {
......
......@@ -7,9 +7,10 @@
package svc
import (
"github.com/conformal/winsvc/winapi"
"errors"
"syscall"
"github.com/btcsuite/winsvc/winapi"
)
// event represents auto-reset, initially non-signaled windows event.
......
......@@ -7,9 +7,10 @@
package svc
import (
"github.com/conformal/winsvc/winapi"
"syscall"
"unsafe"
"github.com/btcsuite/winsvc/winapi"
)
// TODO(brainman): move some of that code to syscall/security.go
......
......@@ -9,11 +9,12 @@
package svc
import (
"github.com/conformal/winsvc/winapi"
"errors"
"runtime"
"syscall"
"unsafe"
"github.com/btcsuite/winsvc/winapi"
)
// State describes service execution state (Stopped, Running and so on).
......
......@@ -7,14 +7,15 @@
package svc_test
import (
"github.com/conformal/winsvc/mgr"
"github.com/conformal/winsvc/svc"
"io/ioutil"
"os"
"os/exec"
"path/filepath"
"testing"
"time"
"github.com/btcsuite/winsvc/mgr"
"github.com/btcsuite/winsvc/svc"
)
func getState(t *testing.T, s *mgr.Service) svc.State {
......@@ -61,7 +62,7 @@ func TestExample(t *testing.T) {
defer os.RemoveAll(dir)
exepath := filepath.Join(dir, "a.exe")
o, err := exec.Command("go", "build", "-o", exepath, "github.com/conformal/winsvc/example").CombinedOutput()
o, err := exec.Command("go", "build", "-o", exepath, "github.com/btcsuite/winsvc/example").CombinedOutput()
if err != nil {
t.Fatalf("failed to build service program: %v\n%v", err, string(o))
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment