[Ovirt-devel] [PATCH] wrappers for taskomatic.rb and host-status.rb
Chris Lalancette
clalance at redhat.com
Sat May 3 14:01:35 UTC 2008
steve linabery wrote:
> Hi Hugh and ovirt,
>
> Well, it turns out it is even simpler than that. All I really needed
> to do was look at host-keyadd, which cooperates well with daemon &
> killproc by doing 'include Daemonize' and calling 'daemonize', as
> you'll see in the attached patch.
>
> Patch adjusts taskomatic.rb and host-status.rb accordingly, and now
> they play nice with /etc/init.d/ovirt-wui script.
Steve,
OK, this could just be my weak understanding of Ruby, but isn't this patch
essentially the same as what it was before? That is, isn't:
require 'daemons'
Daemons.daemonize
equivalent to
require 'daemons'
include Daemonize
daemonize
? If it works, I'm totally cool with the patch; I'd just like to understand the
difference between the two code snippets.
Chris Lalancette
More information about the ovirt-devel
mailing list