On Mon, Aug 11, 2014 at 5:41 AM, Menno Smits <[email protected]>
wrote:

> How this happens is slightly complex but the short answer is that if any
> of jujud's workers exit with a fatalError (as defined in
> cmd/jujud/agent.go), then jujud will terminate (and then be restarted by
> upstart).
>
> I'm not sure how you should propagate the need to exit from the restore
> API call through to the worker but I'm sure that's doable.
>

We currently have ErrTerminateAgent, which signals that the agent should
uninstall itself and then terminate. We probably just want an
ErrRestartAgent which exits the process; upstart will restart it.


> HTH,
> Menno
>
>
>
> On 9 August 2014 11:32, Horacio Duran <[email protected]> wrote:
>
>> Hey, I am currently working on restore command for juju state servers. I
>> find myself in the need, after putting all the back-up parts in place, of
>> restarting jujud, from within jujud. Can anyone shed some light on how to
>> do that?
>> Thank you all.
>> Cheers
>> --
>> Horacio DurĂ¡n
>>
>>
>> --
>> Juju-dev mailing list
>> [email protected]
>> Modify settings or unsubscribe at:
>> https://lists.ubuntu.com/mailman/listinfo/juju-dev
>>
>>
>
> --
> Juju-dev mailing list
> [email protected]
> Modify settings or unsubscribe at:
> https://lists.ubuntu.com/mailman/listinfo/juju-dev
>
>
-- 
Juju-dev mailing list
[email protected]
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/juju-dev

Reply via email to