-
Notifications
You must be signed in to change notification settings - Fork 822
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
No /proc/sys/kernel/hostname file #562
Comments
The failure seems to come from GoLang's os.Hostname() call, so not just this tool being affected I'd assume. |
Sure thing, I'll file a bug to get this added. It looks like we're missing a lot of files in /proc/sys/kernel. As a workaround, we do have the hostname in /etc/hostname. |
👍 Get Outlook for mobile On Tue, Jun 21, 2016 at 9:26 AM -0700, "Ben Hillis" [email protected] wrote: Sure thing, I'll file a bug to get this added. It looks like we're missing a lot of files in /proc/sys/kernel. As a workaround, we do have the hostname in /etc/hostname. — |
Shouldn't it rather use /etc/hostname ? On Tue, Jun 21, 2016 at 6:47 PM, Tobias Haag [email protected]
|
@sundhaug92 - You'll have to ask Google :) I'm sure there's some reason this was chosen. Perhaps /etc/hostname is written by some daemon that not all distros run. |
Looks like proc location is the default for rhel/centos whereas Ubuntu seems to favor /etc Get Outlook for mobile On Tue, Jun 21, 2016 at 9:53 AM -0700, "Ben Hillis" [email protected] wrote: @sundhaug92 - You'll have to ask Google :) I'm sure there's some reason this was chosen. Perhaps /etc/hostname is written by some daemon that not all distros run. — |
More to the point, That said, though, there's a syscall |
@DHowett That's a good explaination. You can also get the host name via the uname system call. I'm also curious why Go doesn't use one of the syscalls. |
This file has been implemented. Not sure if it made Anniversary Update but it's definitely in new Insider builds. |
im using Hub (https://github.com/github/hub) quite a lot but it seems that it's trying to lookup it's local hostname via /proc/sys/kernel/hostname.
Is that something that can be supported in the future?
The text was updated successfully, but these errors were encountered: