You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I installed a daemon with a non-executable name like "port 8082", daemon would create a file named /Library/LaunchDaemons/port_8082.plist with incorrect binary path.
I glanced the codes, it might be failed while calling exec.LookPath so which used filepath.Abs(os.Args[0]) instead. Even though a little bit of extra time, it's still easy to fix by using absolute path from command line. But, I found a issue, when I used status to check, it was returned Service is running..., that was incredible. The output of sudo launchctl list port_8082 is shown as below, I hope I've provided all necessary details, if not, please feel free to point out it.
BTW, my command's name is example which is located in GOPATH, PATH as well.
Hello, I'm working under OS X 10.12.
When I installed a daemon with a non-executable name like "port 8082",
daemon
would create a file named /Library/LaunchDaemons/port_8082.plist with incorrect binary path.I glanced the codes, it might be failed while calling
exec.LookPath
so which usedfilepath.Abs(os.Args[0])
instead. Even though a little bit of extra time, it's still easy to fix by using absolute path from command line. But, I found a issue, when I usedstatus
to check, it was returnedService is running...
, that was incredible. The output ofsudo launchctl list port_8082
is shown as below, I hope I've provided all necessary details, if not, please feel free to point out it.BTW, my command's name is
example
which is located inGOPATH
,PATH
as well.The text was updated successfully, but these errors were encountered: