You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@karaf.apache.org by Jürgen Kindler <jk...@talend.com> on 2011/08/16 16:58:17 UTC

Killing Karaf instance using sigterm (-15)

Hi all,

Trying to gracefully terminate a Karaf instance I had started on a remote system using the STAF process service, but Karaf does not react at all.
The same is true for a Karaf I start locally on a terminal and try to terminate from another terminal window using kill –15 <pid>.
My observation is that it does not matter whether I started Karaf with ./bin/karaf or ./bin/start – in any case the process does not react on the sigterm signal.

Could this be a bug?

Cheers
  Jürgen
--
Jürgen Kindler

Re: Killing Karaf instance using sigterm (-15)

Posted by Achim Nierbeck <bc...@googlemail.com>.
Oh and I forgot,
you still could use a ssh shell and connect to the running server and
use the shutdown command to do that :-)

2011/8/16 Achim Nierbeck <bc...@googlemail.com>:
> I'm not sure if it's a bug or a feature :-)
> But I'd rather use the service wrapper for such things cause the
> service wrapper also reacts on the Sigterm signal.
> The std. shell scripts depend on java and how it handles it :-)
>
> Regards, Achim
>
> 2011/8/16 Jürgen Kindler <jk...@talend.com>:
>> Hi all,
>> Trying to gracefully terminate a Karaf instance I had started on a remote
>> system using the STAF process service, but Karaf does not react at all.
>> The same is true for a Karaf I start locally on a terminal and try to
>> terminate from another terminal window using kill –15 <pid>.
>> My observation is that it does not matter whether I started Karaf with
>> ./bin/karaf or ./bin/start – in any case the process does not react on the
>> sigterm signal.
>> Could this be a bug?
>> Cheers
>>   Jürgen
>> --
>> Jürgen Kindler
>>
>
>
>
> --
> --
> *Achim Nierbeck*
>
>
> Apache Karaf <http://karaf.apache.org/> Committer & PMC
> OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/>
> Committer & Project Lead
> blog <http://notizblog.nierbeck.de/>
>



-- 
--
*Achim Nierbeck*


Apache Karaf <http://karaf.apache.org/> Committer & PMC
OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/>
Committer & Project Lead
blog <http://notizblog.nierbeck.de/>

Re: Killing Karaf instance using sigterm (-15)

Posted by Achim Nierbeck <bc...@googlemail.com>.
I'd have to take a look at the main for karaf if we do some
specialties to "disable" it :-)

regards, Achim

2011/8/16 Jürgen Kindler <jk...@talend.com>:
> Well, for standalone Java processes, I it works.
> I also start JVMs directly and they react on sigterm.
> Surprising why it would not with Karaf.
>
> --
> Jürgen Kindler
>
>
>
>
> -----Ursprüngliche Nachricht-----
> Von: Achim Nierbeck <bc...@googlemail.com>
> Antworten an: Karaf User <us...@karaf.apache.org>
> Datum: Tue, 16 Aug 2011 17:01:50 +0200
> An: Karaf User <us...@karaf.apache.org>
> Betreff: Re: Killing Karaf instance using sigterm (-15)
>
>>I'm not sure if it's a bug or a feature :-)
>>But I'd rather use the service wrapper for such things cause the
>>service wrapper also reacts on the Sigterm signal.
>>The std. shell scripts depend on java and how it handles it :-)
>>
>>Regards, Achim
>>
>>2011/8/16 JÃ1Ž4rgen Kindler <jk...@talend.com>:
>>> Hi all,
>>> Trying to gracefully terminate a Karaf instance I had started on a
>>>remote
>>> system using the STAF process service, but Karaf does not react at all.
>>> The same is true for a Karaf I start locally on a terminal and try to
>>> terminate from another terminal window using kill ­15 <pid>.
>>> My observation is that it does not matter whether I started Karaf with
>>> ./bin/karaf or ./bin/start ­ in any case the process does not react on
>>>the
>>> sigterm signal.
>>> Could this be a bug?
>>> Cheers
>>>   Jürgen
>>> --
>>> Jürgen Kindler
>>>
>>
>>
>>
>>--
>>--
>>*Achim Nierbeck*
>>
>>
>>Apache Karaf <http://karaf.apache.org/> Committer & PMC
>>OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/>
>>Committer & Project Lead
>>blog <http://notizblog.nierbeck.de/>
>
>



-- 
--
*Achim Nierbeck*


Apache Karaf <http://karaf.apache.org/> Committer & PMC
OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/>
Committer & Project Lead
blog <http://notizblog.nierbeck.de/>

Re: Killing Karaf instance using sigterm (-15)

Posted by Jürgen Kindler <jk...@talend.com>.
Well, for standalone Java processes, I it works.
I also start JVMs directly and they react on sigterm.
Surprising why it would not with Karaf.

-- 
Jürgen Kindler




-----Ursprüngliche Nachricht-----
Von: Achim Nierbeck <bc...@googlemail.com>
Antworten an: Karaf User <us...@karaf.apache.org>
Datum: Tue, 16 Aug 2011 17:01:50 +0200
An: Karaf User <us...@karaf.apache.org>
Betreff: Re: Killing Karaf instance using sigterm (-15)

>I'm not sure if it's a bug or a feature :-)
>But I'd rather use the service wrapper for such things cause the
>service wrapper also reacts on the Sigterm signal.
>The std. shell scripts depend on java and how it handles it :-)
>
>Regards, Achim
>
>2011/8/16 JÃ1Ž4rgen Kindler <jk...@talend.com>:
>> Hi all,
>> Trying to gracefully terminate a Karaf instance I had started on a
>>remote
>> system using the STAF process service, but Karaf does not react at all.
>> The same is true for a Karaf I start locally on a terminal and try to
>> terminate from another terminal window using kill ­15 <pid>.
>> My observation is that it does not matter whether I started Karaf with
>> ./bin/karaf or ./bin/start ­ in any case the process does not react on
>>the
>> sigterm signal.
>> Could this be a bug?
>> Cheers
>>   Jürgen
>> --
>> Jürgen Kindler
>>
>
>
>
>-- 
>--
>*Achim Nierbeck*
>
>
>Apache Karaf <http://karaf.apache.org/> Committer & PMC
>OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/>
>Committer & Project Lead
>blog <http://notizblog.nierbeck.de/>


Re: Killing Karaf instance using sigterm (-15)

Posted by Achim Nierbeck <bc...@googlemail.com>.
I'm not sure if it's a bug or a feature :-)
But I'd rather use the service wrapper for such things cause the
service wrapper also reacts on the Sigterm signal.
The std. shell scripts depend on java and how it handles it :-)

Regards, Achim

2011/8/16 Jürgen Kindler <jk...@talend.com>:
> Hi all,
> Trying to gracefully terminate a Karaf instance I had started on a remote
> system using the STAF process service, but Karaf does not react at all.
> The same is true for a Karaf I start locally on a terminal and try to
> terminate from another terminal window using kill –15 <pid>.
> My observation is that it does not matter whether I started Karaf with
> ./bin/karaf or ./bin/start – in any case the process does not react on the
> sigterm signal.
> Could this be a bug?
> Cheers
>   Jürgen
> --
> Jürgen Kindler
>



-- 
--
*Achim Nierbeck*


Apache Karaf <http://karaf.apache.org/> Committer & PMC
OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/>
Committer & Project Lead
blog <http://notizblog.nierbeck.de/>