fix: rename binary to ssm
This commit is contained in:
@ -15,10 +15,10 @@ import (
|
||||
)
|
||||
|
||||
// windowsServiceHandler implements svc.Handler, hosting the mihomo
|
||||
// subprocess directly inside the ss binary. Replaces
|
||||
// subprocess directly inside the ssm binary. Replaces
|
||||
// windows_service_wrapper.py + pywin32 + the per-service JSON config file:
|
||||
// the equivalent configuration (bin path + args) is now passed as command
|
||||
// line flags to `ss service run-windows`, and this same binary registers
|
||||
// line flags to `ssm service run-windows`, and this same binary registers
|
||||
// itself as the service via golang.org/x/sys/windows/svc.
|
||||
type windowsServiceHandler struct {
|
||||
name string
|
||||
@ -119,7 +119,7 @@ func (w *logWriter) Write(p []byte) (int, error) {
|
||||
|
||||
// RunWindowsService registers this process as the named Windows service and
|
||||
// blocks until the service control manager stops it. Invoked via the hidden
|
||||
// `ss service run-windows --name <name> --bin <binPath> --args <args>`
|
||||
// `ssm service run-windows --name <name> --bin <binPath> --args <args>`
|
||||
// command that Install() points sc.exe's binPath= at.
|
||||
func RunWindowsService(name, binPath, args string) error {
|
||||
logPath := filepath.Join(filepath.Dir(binPath), name+"_service.log")
|
||||
|
||||
Reference in New Issue
Block a user