fregie commented on issue #1840:
URL:
https://github.com/apache/apisix-dashboard/issues/1840#issuecomment-834973854
@bisakhmondal Thank you for explanation.
I don't think use a standalone tool would make things messier.Because both
ways need to focus on each OS (Linux, Windows, OSX),just the current way using
library `takama/daemon` dealt with this problem,we can also use a library to do
this to avoid spending a lot of time of us dealing with it.
And I don't think it's a good idea deal with system-level differences in
core code.This will bring more uncertainty to our core logic.
Like this:
```golang
if runtime.GOOS == "darwin" {
d, err = daemon.New("apisix-dashboard", "Apache APISIX Dashboard",
daemon.GlobalDaemon)
} else {
d, err = daemon.New("apisix-dashboard", "Apache APISIX Dashboard",
daemon.SystemDaemon)
}
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]