Re: [patch]: funcd --list-modules

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi guys (directly from FudCon Func presentation).

I've found out a "strange" problem (strange to my eyes).

Executing "service status" module/method I get a different answer from
func. If my service answer in this way:

service funcd status
/usr/bin/funcd is running

func report 1 as status

in other cases

service httpd status
httpd (pid 4724 4723 4722 4721 4720 4719 4718 4717 4715) is running...

the func answer is 0.

Is it correct/normal this situation. Because testing in Symbolic I
naturally get a wrong answer because for me "running" answer is 0 and
not 1.

Waiting for answer!! ;)

Bye 
Marco

PS Many people are following Func talk!! ;)

------------
Dott. Ing. Mornati Marco
Byte-Code s.r.l
via Antonio Cechov, 1
San Giuliano Milanese (MI)
E-Mail: mmornati@xxxxxxxxxxxxx
Mob. +39 3388246643
Int. +39 02 45074942
Tel. +39 02 9840047
Fax. +39 02 98247475

----- Original Message -----
From: "Adrian LIkins" <alikins@xxxxxxxxxx>
To: "Luca Lesinigo" <luca@xxxxxxxxxxxxx>
Cc: func-list@xxxxxxxxxx
Sent: Friday, September 5, 2008 8:47:58 PM GMT +01:00 Amsterdam / Berlin / Bern / Rome / Stockholm / Vienna
Subject: Re:  [patch]: funcd --list-modules

Patch applied, thanks!


Adrian

Luca Lesinigo wrote:
> WHAT:
> this patch adds a new --list-modules to the minion (funcd). The new 
> option will let it print the list of loaded modules and quit.
> the funcd(1) man page has been updated
>
> Also, it isn't related to --list-modules, but I added --daemon to the 
> man page (it was missing) and reformatted it a little following 
> classic standards.
>
> WHY:
> this was part of an evil plan for the funcd init script in gentoo :) 
> before realizing that what I wanted to do is impossible.
> I'm posting the patch anyway before deleting the branch in my local 
> git, maybe you find it useful. Many module-based programs have a way 
> to get a list of modules without actually starting the program, it 
> could be useful for debug / info purposes.
>
> HOW:
> It's an easy patch in minion/server.py - overlord is not of concern 
> here since what I wanted were minion's modules.
>
> I'm attaching the output of git diff HEAD against a fresh copy of 
> func's git repository.
>
>
> ------------------------------------------------------------------------
>
>
>
> --
> Luca Lesinigo
> ------------------------------------------------------------------------
>
> _______________________________________________
> Func-list mailing list
> Func-list@xxxxxxxxxx
> https://www.redhat.com/mailman/listinfo/func-list

_______________________________________________
Func-list mailing list
Func-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/func-list

_______________________________________________
Func-list mailing list
Func-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/func-list

[Index of Archives]     [Fedora Users]     [Linux Networking]     [Fedora Legacy List]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]

  Powered by Linux