You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@felix.apache.org by Borja <bm...@iac3.eu> on 2011/05/30 11:34:53 UTC

Shutdown Felix externally

I want to know if there is any possibility to safely stop felix outside
of felix shell.
I would like to make an executable that could be used as a stop script.


Saludos,

Borja Miñano
IAC3


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
For additional commands, e-mail: users-help@felix.apache.org


Re: Shutdown Felix externally

Posted by Borja <bm...@iac3.eu>.
I think this is the better option for me.

Thank you Richard


El lun, 30-05-2011 a las 10:25 -0400, Richard S. Hall escribió:
> 
> On 5/30/11 5:55, Borja wrote:
> > Sorry Karl,
> >
> > I don't understand you. Do you refer sending the signal programatically
> > or an OS signal?
> > I mean stoping it safely, like doing a stop 0 in the shell, but from
> > outside. From command line, or something i could use in a script.
> 
> If you have a reference to the framework instance (e.g., you created the 
> instance), then just call stop() on it and do a waitForStop()...
> 
> If you don't have a reference to the instance, then you could deploy a 
> bundle that gives you remote access somehow to do a stop() on the system 
> bundle.
> 
> -> richard
> 
> > Thanks for your interest
> >
> > El lun, 30-05-2011 a las 11:46 +0200, Karl Pauls escribió:
> >> If you use our basic main jar, it registers a shutdown hook so you
> >> should be able to just send a kill signal to make the framework
> >> shutdown.
> >>
> >> regards,
> >>
> >> Karl
> >>
> >> On Mon, May 30, 2011 at 11:34 AM, Borja<bm...@iac3.eu>  wrote:
> >>> I want to know if there is any possibility to safely stop felix outside
> >>> of felix shell.
> >>> I would like to make an executable that could be used as a stop script.
> >>>
> >>>
> >>> Saludos,
> >>>
> >>> Borja Miñano
> >>> IAC3
> >>>
> >>>
> >>> ---------------------------------------------------------------------
> >>> To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
> >>> For additional commands, e-mail: users-help@felix.apache.org
> >>>
> >>>
> >>
> >>
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
> For additional commands, e-mail: users-help@felix.apache.org
> 

-- 
Saludos,

Borja Miñano
IAC3


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
For additional commands, e-mail: users-help@felix.apache.org


Re: Shutdown Felix externally

Posted by "Richard S. Hall" <he...@ungoverned.org>.

On 5/30/11 5:55, Borja wrote:
> Sorry Karl,
>
> I don't understand you. Do you refer sending the signal programatically
> or an OS signal?
> I mean stoping it safely, like doing a stop 0 in the shell, but from
> outside. From command line, or something i could use in a script.

If you have a reference to the framework instance (e.g., you created the 
instance), then just call stop() on it and do a waitForStop()...

If you don't have a reference to the instance, then you could deploy a 
bundle that gives you remote access somehow to do a stop() on the system 
bundle.

-> richard

> Thanks for your interest
>
> El lun, 30-05-2011 a las 11:46 +0200, Karl Pauls escribió:
>> If you use our basic main jar, it registers a shutdown hook so you
>> should be able to just send a kill signal to make the framework
>> shutdown.
>>
>> regards,
>>
>> Karl
>>
>> On Mon, May 30, 2011 at 11:34 AM, Borja<bm...@iac3.eu>  wrote:
>>> I want to know if there is any possibility to safely stop felix outside
>>> of felix shell.
>>> I would like to make an executable that could be used as a stop script.
>>>
>>>
>>> Saludos,
>>>
>>> Borja Miñano
>>> IAC3
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
>>> For additional commands, e-mail: users-help@felix.apache.org
>>>
>>>
>>
>>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
For additional commands, e-mail: users-help@felix.apache.org


Re: Shutdown Felix externally

Posted by Karl Pauls <ka...@gmail.com>.
if you send an os signal, it will invoke the shutdown hook and we'll
turn around and call stop 0

regards,

Karl

On Mon, May 30, 2011 at 11:55 AM, Borja <bm...@iac3.eu> wrote:
> Sorry Karl,
>
> I don't understand you. Do you refer sending the signal programatically
> or an OS signal?
> I mean stoping it safely, like doing a stop 0 in the shell, but from
> outside. From command line, or something i could use in a script.
>
> Thanks for your interest
>
> El lun, 30-05-2011 a las 11:46 +0200, Karl Pauls escribió:
>> If you use our basic main jar, it registers a shutdown hook so you
>> should be able to just send a kill signal to make the framework
>> shutdown.
>>
>> regards,
>>
>> Karl
>>
>> On Mon, May 30, 2011 at 11:34 AM, Borja <bm...@iac3.eu> wrote:
>> >
>> > I want to know if there is any possibility to safely stop felix outside
>> > of felix shell.
>> > I would like to make an executable that could be used as a stop script.
>> >
>> >
>> > Saludos,
>> >
>> > Borja Miñano
>> > IAC3
>> >
>> >
>> > ---------------------------------------------------------------------
>> > To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
>> > For additional commands, e-mail: users-help@felix.apache.org
>> >
>> >
>>
>>
>>
>
> --
> Saludos,
>
> Borja Miñano
> IAC3
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
> For additional commands, e-mail: users-help@felix.apache.org
>
>



-- 
Karl Pauls
karlpauls@gmail.com
http://twitter.com/karlpauls
http://www.linkedin.com/in/karlpauls
https://profiles.google.com/karlpauls

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
For additional commands, e-mail: users-help@felix.apache.org


Re: Shutdown Felix externally

Posted by Borja <bm...@iac3.eu>.
Sorry Karl,

I don't understand you. Do you refer sending the signal programatically
or an OS signal?
I mean stoping it safely, like doing a stop 0 in the shell, but from
outside. From command line, or something i could use in a script.

Thanks for your interest

El lun, 30-05-2011 a las 11:46 +0200, Karl Pauls escribió:
> If you use our basic main jar, it registers a shutdown hook so you
> should be able to just send a kill signal to make the framework
> shutdown.
> 
> regards,
> 
> Karl
> 
> On Mon, May 30, 2011 at 11:34 AM, Borja <bm...@iac3.eu> wrote:
> >
> > I want to know if there is any possibility to safely stop felix outside
> > of felix shell.
> > I would like to make an executable that could be used as a stop script.
> >
> >
> > Saludos,
> >
> > Borja Miñano
> > IAC3
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
> > For additional commands, e-mail: users-help@felix.apache.org
> >
> >
> 
> 
> 

-- 
Saludos,

Borja Miñano
IAC3


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
For additional commands, e-mail: users-help@felix.apache.org


Re: Shutdown Felix externally

Posted by Karl Pauls <ka...@gmail.com>.
If you use our basic main jar, it registers a shutdown hook so you
should be able to just send a kill signal to make the framework
shutdown.

regards,

Karl

On Mon, May 30, 2011 at 11:34 AM, Borja <bm...@iac3.eu> wrote:
>
> I want to know if there is any possibility to safely stop felix outside
> of felix shell.
> I would like to make an executable that could be used as a stop script.
>
>
> Saludos,
>
> Borja Miñano
> IAC3
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
> For additional commands, e-mail: users-help@felix.apache.org
>
>



-- 
Karl Pauls
karlpauls@gmail.com
http://twitter.com/karlpauls
http://www.linkedin.com/in/karlpauls
https://profiles.google.com/karlpauls

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
For additional commands, e-mail: users-help@felix.apache.org