Good Morning,
I made an api that took the mac adress of the user’s machine where this GO application.
But as the user is closing this application I need to make this application run in the background or as a service.
Are there any examples, or something native that already did it?
Hi
Try go-svc (https://github.com/judwhite/go-svc)
Maybe you need to trap the exit signal : https://golang.org/pkg/os/signal/
And then launch a demon : https://github.com/sevlyar/go-daemon
If you are using Linux, you can use nohup to start your go app
[https://www.computerhope.com/unix/unohup.htm]
This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.