Jsvc "Service killed by signal 11"

2017-06-21 Thread Andrea Lo Pumo
Jsvc is working fine on my machine and on other machines, however on a particular one, it is not working. In the logs I get "Service killed by signal 11". I am using a simple daemon for tests (here attached). I compiled it with javac -cp /usr/share/java/commons-daemon.jar MyDaemon.java. Jsvc is

Re: Jsvc "Service killed by signal 11"

2017-06-22 Thread Andrea Lo Pumo
-16059314 Any help is appreciated. 2017-06-21 10:42 GMT+02:00 Andrea Lo Pumo <alop...@movia.biz>: > Jsvc is working fine on my machine and on other machines, however on a > particular one, it is not working. > > In the logs I get "Service killed by signal 11". > > I

Jsvc start/stop and threads

2017-06-05 Thread Andrea Lo Pumo
I am creating a thread in init(), and starting it in start(). In the user guide, there is written: "void stop(): Inform the Thread to terminate the run(), close the ServerSockets". So in stop() I am interrupting my thread. In the apidocs, there is written "the container may restart the Daemon by

Re: Jsvc start/stop and threads

2017-06-05 Thread Andrea Lo Pumo
6-05 12:27 GMT+02:00 Greg Thomas <greg.d.tho...@gmail.com>: > If you're terminating your thread, you'll simply need to start a new one. > > Greg > > On 5 June 2017 at 11:24, Andrea Lo Pumo <alop...@movia.biz> wrote: > > > I am creating a thread in init(), and

Can init() be called more than once in a single JVM session?

2017-10-23 Thread Andrea Lo Pumo
Since now, I have always assumed that init() is called once, and no more. Now I am not sure anymore. My doubt is that init() can be called a second time, after destroy() has been called, for example, if the program is restarted by Jsvc. Is this so? If yes, I should use a static variable

[daemon] Can init() be called more than once in a single JVM session?

2017-10-23 Thread Andrea Lo Pumo
Since now, I have always assumed that init() is called once, and no more. Now I am not sure anymore. My doubt is that init() can be called a second time, after destroy() has been called, for example, if the program is restarted by Jsvc. Is this so? If yes, I should use a static variable

Re: [daemon] Can init() be called more than once in a single JVM session?

2017-11-29 Thread Andrea Lo Pumo
Does anyone have an answer? Best regards. 2017-10-23 15:53 GMT+02:00 Andrea Lo Pumo <alop...@movia.biz>: > Since now, I have always assumed that init() is called once, and no > more. Now I am not sure anymore. My doubt is that init() can be called > a second time, after des