service
service copied to clipboard
running in terminal reports that its also running as a service
$ go run .
I: 11:45:08 Running in terminal.
I: 11:45:08 I'm running linux-systemd.
(from the logging example)
if we're running in the terminal without a service, we shouldn't be really be running the init detection?
(this is only a very minor issue, but it felt like something unintentional might be happening
It reports the platform it runs on. Linux, with systemd service manager. https://github.com/kardianos/service/blob/master/example/logging/main.go#L37
The interactive/non-interactive run is detected ok https://github.com/kardianos/service/blob/master/example/logging/main.go#L26