Bug 8258 - File not found when stopping the PR Server using localhost as host
Summary: File not found when stopping the PR Server using localhost as host
Status: RESOLVED FIXED
Alias: None
Product: OE-Core
Classification: Build System, Metadata & Runtime
Component: Scripts and Tools (show other bugs)
Version: 1.8
Hardware: x86 Multiple
: Medium minor
Target Milestone: 2.0
Assignee: Leonardo Sandoval Gonzalez
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2015-09-04 14:50 UTC by Leonardo Sandoval Gonzalez
Modified: 2015-10-07 13:46 UTC (History)
1 user (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: No (bug/feature does not impact docs)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Leonardo Sandoval Gonzalez 2015-09-04 14:50:59 UTC
When stopping the prserver using localhost as host, it tries to find a file '/tmp/PRServer_127.0.0.1_8585.pid' which is not present on the system.

Steps to reproduced:

$ bitbake-prserv --host localhost --port 8585 --loglevel=DEBUG --start

$ bitbake-prserv --host localhost --port 8585 --loglevel=DEBUG --stop

pidfile /tmp/PRServer_localhost_8585.pid does not exist. Daemon not running?


It is important to notice that the server was CORRECTLY stopped, just the extra message is wrong.
Comment 1 Leonardo Sandoval Gonzalez 2015-09-04 14:52:22 UTC
(In reply to comment #0)
> When stopping the prserver using localhost as host, it tries to find a file
> '/tmp/PRServer_127.0.0.1_8585.pid' which is not present on the system.

I meant '/tmp/PRServer_localhost_8585.pid'

> 
> Steps to reproduced:
> 
> $ bitbake-prserv --host localhost --port 8585 --loglevel=DEBUG --start
> 
> $ bitbake-prserv --host localhost --port 8585 --loglevel=DEBUG --stop
> 
> pidfile /tmp/PRServer_localhost_8585.pid does not exist. Daemon not running?
> 
> 
> It is important to notice that the server was CORRECTLY stopped, just the
> extra message is wrong.
Comment 2 Leonardo Sandoval Gonzalez 2015-09-04 22:10:52 UTC
One additional comment:

The file created has the name:

/tmp/PRServer_127.0.0.1_8585.pid

So, this file is stored with the IP, but it looking using the string 'localhost'
Comment 3 Leonardo Sandoval Gonzalez 2015-09-15 23:12:05 UTC
Patch sent to the ML.