mirror of
https://github.com/Evidlo/remarkable_printer.git
synced 2024-10-19 19:17:37 -04:00
add log-line for systemd-socet-activation
This commit is contained in:
parent
4a880b781d
commit
71114492ed
1
main.go
1
main.go
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue