[Openstack] Which functions are invoked in swift source code

John Dickinson me at not.mn
Tue Oct 8 05:00:31 UTC 2013

swift-init looks for a "--once" argument. If it's present, then the once kwarg will be set in the call to swift.common.daemon.run_daemon(). This in turn calls the appropriate run_once or run_forever.



On Oct 7, 2013, at 9:36 PM, pragya jain <prag_2648 at yahoo.co.in> wrote:

> hello all,
> when we give the command 
> $ sudo swift-init accoount-auditor start
>  __init__ functions defined in the class AccountAuditor in swift/account/auditor.py is invoked.
> But, I don't understand
> 1. How does the control go to run_forever() or run_once() function defined in the same class?
> 2. Who will decide whether to run run_forever() function or run_once() function?
> Please help me in this regard
> ------
> Thanks 
> Pragya jain
> _______________________________________________
> Mailing list: http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
> Post to     : openstack at lists.openstack.org
> Unsubscribe : http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 801 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://lists.openstack.org/pipermail/openstack/attachments/20131007/a1d7c8fb/attachment.sig>

More information about the Openstack mailing list