The service package now has a Linux implementation alongside the Windows one: systemd unit install/remove (/etc/systemd/system), readiness notification (READY=1 via go-systemd) sent only after the listeners are bound, a 30s watchdog, and STOPPING on shutdown. Listeners are pre-bound so port conflicts fail fast and the readiness signal is truthful. The notify calls are no-ops without NOTIFY_SOCKET (containers, shells) and on non-Linux builds. --install-service/--remove-service work on both platforms; the 'service install|remove' subcommand remains as an alias.
8 lines
114 B
AMPL
8 lines
114 B
AMPL
module gpu-turnstile
|
|
|
|
go 1.23
|
|
|
|
require golang.org/x/sys v0.29.0
|
|
|
|
require github.com/coreos/go-systemd/v22 v22.7.0
|