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
-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
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
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
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
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
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