Re: [systemd-devel] Cannot make java exit 0 on SIGTERM

2012-02-20 Thread Lennart Poettering
On Thu, 16.02.12 22:53, mokasin ([email protected]) wrote: > > failure exit codes) > > > > Lennart > > > > It seems also to ignore an exit code due to an error. > > If the service failed to start for an actual reason, wouldn't systemd > fail to recognize it? Yes, we prefixing with "-" ensu

Re: [systemd-devel] Cannot make java exit 0 on SIGTERM

2012-02-17 Thread mokasin
On 15.12.2011 16:56, Lennart Poettering wrote: > On Mon, 28.11.11 15:12, Chris Paulson-Ellis ([email protected]) wrote: > >> Hi, >> >> I'm running a Java JVM service using: >> >> ExecStart=/usr/bin/java -jar foo.jar >> >> When I stop the service with systemctl, it goes into the failed >> state becau

Re: [systemd-devel] Cannot make java exit 0 on SIGTERM

2011-12-15 Thread Lennart Poettering
On Mon, 28.11.11 15:12, Chris Paulson-Ellis ([email protected]) wrote: > Hi, > > I'm running a Java JVM service using: > > ExecStart=/usr/bin/java -jar foo.jar > > When I stop the service with systemctl, it goes into the failed > state because the JVM exits with status 143 instead of 0. > > The

Re: [systemd-devel] Cannot make java exit 0 on SIGTERM

2011-11-29 Thread Peter Sztan
Chris Paulson-Ellis edesix.com> writes: > Is there any way to get systemd to treat the 143 exit status as normal > termination if it sent a SIGTERM? I'd rather not write a signal catching > C or shell-script wrapper around the JVM as I'll probably introduce a > race condition or other error.

[systemd-devel] Cannot make java exit 0 on SIGTERM

2011-11-28 Thread Chris Paulson-Ellis
Hi, I'm running a Java JVM service using: ExecStart=/usr/bin/java -jar foo.jar When I stop the service with systemctl, it goes into the failed state because the JVM exits with status 143 instead of 0. There doesn't seem to be any way to get a JVM to exit(0) on SIGTERM. You can run code on t