1.16 release

2 views
Skip to first unread message

Вячеслав Матюхин

unread,
Sep 7, 2010, 11:27:42 AM9/7/10
to ubic...@googlegroups.com
Ubic::Daemon's check_daemon() function now returns Ubic::Daemon::Status object, so services can get daemon's pid if they need it.
Because of this improvement, Ubic::Service::SimpleDaemon now can return result with extended message:

# ubic status ubic-ping
ubic-ping running (pid 15301)

This currently works only for online status checking.
"ubic status" from non-root user returns cached status, which contains only main status field ("running"/"not running"/"broken").
I'll probably fix this later.

Enjoy!

Full changelog:
* Ubic::Daemon:
- check_daemon() now returns proper Ubic::Daemon::Status object
- don't log warning if daemon exited by sigterm
- minor logging cleanup
* Ubic::Service::SimpleDaemon returns daemon pid in status msg
* test improvements:
- using Test::TCP when testing ubic-ping
- watchdog.t skips all tests if 'fakeroot' is not present
* Ubic::Cmd: print 'running' result as good when it contains extended message

--
Vyacheslav Matyukhin
http://github.com/berekuk
http://friendfeed.com/mmcleric
http://berekuk.ru

bessarabov

unread,
Sep 8, 2010, 3:30:18 AM9/8/10
to Ubic

> Full changelog:
>    - don't log warning if daemon exited by sigterm

Cool! That thing was a little annoying =) Thank you!
Reply all
Reply to author
Forward
0 new messages