service icon indicating copy to clipboard operation
service copied to clipboard

running in terminal reports that its also running as a service

Open SvenDowideit opened this issue 4 years ago • 1 comments

$ 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

SvenDowideit avatar Apr 20 '21 01:04 SvenDowideit

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

prochac avatar Jan 09 '23 21:01 prochac