add log-line for systemd-socet-activation

This commit is contained in:
Jonas Große Sundrup 2023-12-29 23:35:26 +01:00
parent 4a880b781d
commit 71114492ed
No known key found for this signature in database
GPG key ID: 5B587ADC0531D442

View file

@ -72,6 +72,7 @@ func main() {
var isSocketActivated = os.Getenv("LISTEN_PID") == strconv.Itoa(os.Getpid())
if isSocketActivated {
l, err = net.FileListener(os.NewFile(3, "systemd-socket"))
fmt.Println("Listening on systemd-socket")
} else {
l, err = net.Listen("tcp", *CONN_HOST+":"+*CONN_PORT)
fmt.Println("Listening on " + *CONN_HOST + ":" + *CONN_PORT)