Discussion:
Killing Karaf instance using sigterm (-15)
Jürgen Kindler
2011-08-16 14:58:17 UTC
Permalink
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
2011-08-16 15:01:50 UTC
Permalink
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
Post by Jürgen Kindler
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
2011-08-16 15:02:41 UTC
Permalink
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 :-)
Post by Achim Nierbeck
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
Post by Jürgen Kindler
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/>
Jürgen Kindler
2011-08-16 15:12:47 UTC
Permalink
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 <bcanhome-gM/Ye1E23mwN+***@public.gmane.org>
Antworten an: Karaf User <user-pv/46qCGq+UyzMRdD/***@public.gmane.org>
Datum: Tue, 16 Aug 2011 17:01:50 +0200
An: Karaf User <user-pv/46qCGq+UyzMRdD/***@public.gmane.org>
Betreff: Re: Killing Karaf instance using sigterm (-15)
Post by Achim Nierbeck
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
Post by Jürgen Kindler
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
2011-08-16 15:17:46 UTC
Permalink
I'd have to take a look at the main for karaf if we do some
specialties to "disable" it :-)

regards, Achim
Post by Jürgen Kindler
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-----
Datum: Tue, 16 Aug 2011 17:01:50 +0200
Betreff: Re: Killing Karaf instance using sigterm (-15)
Post by Achim Nierbeck
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
Post by Jürgen Kindler
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/>
Loading...