Skip to content

Commit

Permalink
Ubic::Ping 127.0.0.1 instead of localhost - docs
Browse files Browse the repository at this point in the history
  • Loading branch information
Vyacheslav Matyukhin committed Jan 27, 2015
1 parent 57c87cb commit f6c5b3c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions Changes
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ Revision history for Ubic
(thanks to github:nwtour for the patch, see https://github.com/berekuk/Ubic/pull/73)
* SimpleDaemon: sigusr1 and sigusr2 custom commands
(thanks to github:bacek for the patch, see https://github.com/berekuk/Ubic/pull/70)
* Ubic::Ping - check via 127.0.0.1 instead of localhost
(thanks to github:eightn for the patch, see https://github.com/berekuk/Ubic/pull/71)

1.57_01 2014-08-11
* fix Ubic::Credentials::OS::POSIX 'eq' method
Expand Down
2 changes: 1 addition & 1 deletion lib/Ubic/Manual/FAQ.pod
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ Anyway, don't worry about it, it's completely harmless.
C<ubic.update> service (and ubic-update script) updates portmap - local C<< { port => service-name } >> mapping.
It makes possible to check a service status via C<ubic.ping> using service port instead of its name:

$ wget -q -O - 'http://127.0.0.1:12345/status/port/12345'
$ wget -q -O - 'http://localhost:12345/status/port/12345'
ok

Resolving of service by port can't be done on-the-fly by C<ubic.ping>, because all service definitions are cached internally by Ubic.pm (L<Ubic::Multiservice>, actually, but you don't have to know the difference), since constant reloading of service definition can cause memory leaks.
Expand Down

0 comments on commit f6c5b3c

Please sign in to comment.