Starting the WebDAV service works fine but when stopping, the service remains in a failed state:
Apr 16 16:06:07 omii005-vm03.cnaf.infn.it systemd[1]: storm-webdav.service: main process exited, code=exited, status=143/n/a Apr 16 16:06:07 omii005-vm03.cnaf.infn.it systemd[1]: Stopped StoRM WebDAV service. Apr 16 16:06:07 omii005-vm03.cnaf.infn.it systemd[1]: Unit storm-webdav.service entered failed state. Apr 16 16:06:07 omii005-vm03.cnaf.infn.it systemd[1]: storm-webdav.service failed. Apr 16 16:06:07 omii005-vm03.cnaf.infn.it systemd[1]: Started StoRM WebDAV service.
Exit code 143 means that the program received a SIGTERM signal to instruct it to exit. The JVM catches the signal, does a clean shutdown, i.e. it runs all registered shutdown hooks, but still exits with an exit code of 143. That's just how Java works.
We should be able to suppress this by adding the exit code into the unit file as a "success" exit status:
[Service] SuccessExitStatus=143
- relates to
-
STOR-1395 StoRM Backend service enters failed state when stopped
- Closed