Replace manual signal handling in runDaemon() with kardianos/service for cross-platform service lifecycle (Start/Stop/Run). Add daemon start/stop/restart subcommands using service.Control(), and improve status detection with s.Status() plus socket-check fallback. Custom macOS install logic (dscl, sudoers, pf, plist generation) is unchanged — only the runtime lifecycle is delegated to the library.
17 lines
352 B
Modula-2
17 lines
352 B
Modula-2
module gitea.app.monadical.io/monadical/greywall
|
|
|
|
go 1.25
|
|
|
|
require (
|
|
github.com/bmatcuk/doublestar/v4 v4.9.1
|
|
github.com/kardianos/service v1.2.4
|
|
github.com/spf13/cobra v1.8.1
|
|
github.com/tidwall/jsonc v0.3.2
|
|
golang.org/x/sys v0.39.0
|
|
)
|
|
|
|
require (
|
|
github.com/inconshreveable/mousetrap v1.1.0 // indirect
|
|
github.com/spf13/pflag v1.0.5 // indirect
|
|
)
|