Re: [systemd-devel] Springboot and systemd, clean shutdown

2024-10-02 Thread Brian Reichert
On Wed, Oct 02, 2024 at 11:35:59PM +0200, Silvio Knizek wrote: > Hi, > > according to > https://www.springcloud.io/post/2022-02/spring-boot-graceful-shutdown/#gsc.tab=0 > you can just send `SIGTERM` to the MainPID as kill signal and be happy. No > need to fiddle with some `curl` command. This i

Re: [systemd-devel] Springboot and systemd, clean shutdown

2024-10-02 Thread Silvio Knizek
Am Mittwoch, dem 02.10.2024 um 12:58 -0400 schrieb Brian Reichert: > ``` > My goal: > > Under SLES12 SP5 running systemd-228, I want to cleanly terminate > a Java-based SpringBoot application. > > My problem: > > systemd (or at least the version available to me) seemingly is > terminati

Re: [systemd-devel] Springboot and systemd, clean shutdown

2024-10-02 Thread Brian Reichert
On Wed, Oct 02, 2024 at 08:57:52PM +0200, Etienne Doms wrote: > Hi, > > https://www.freedesktop.org/software/systemd/man/latest/systemd.service.html#ExecStop= > > Your curl command just sends an HTTP POST request and waits for the > reply, but at this point I guess your Spring Boot application is

Re: [systemd-devel] Springboot and systemd, clean shutdown

2024-10-02 Thread Etienne Doms
Hi, https://www.freedesktop.org/software/systemd/man/latest/systemd.service.html#ExecStop= "Note that it is usually not sufficient to specify a command for this setting that only asks the service to terminate (for example, by sending some form of termination signal to it), but does not wait for i

Re: [systemd-devel] Springboot and systemd, clean shutdown

2024-10-02 Thread Andrei Borzenkov
02.10.2024 19:58, Brian Reichert wrote: My goal: Under SLES12 SP5 running systemd-228, I want to cleanly terminate a Java-based SpringBoot application. My problem: systemd (or at least the version available to me) seemingly is terminating my JVM differently than my ExecStop directi

[systemd-devel] Springboot and systemd, clean shutdown

2024-10-02 Thread Brian Reichert
My goal: Under SLES12 SP5 running systemd-228, I want to cleanly terminate a Java-based SpringBoot application. My problem: systemd (or at least the version available to me) seemingly is terminating my JVM differently than my ExecStop directive should yield. Just for quick background