znuny / Znuny

Znuny/Znuny LTS is a fork of the ((OTRS)) Community Edition, one of the most flexible web-based ticketing systems used for Customer Service, Help Desk, IT Service Management.
https://www.znuny.org
GNU General Public License v3.0
343 stars 83 forks source link

Fixed wrong otrs.Daemon.pl exit code after valid termination #401

Open pboguslawski opened 1 year ago

pboguslawski commented 1 year ago

Proposed change

When otrs.Daemon.pl daemon process receives INT signal to terminate (i.e. from "otrs.Daemon.pl stop" command) it exits with code 1 not 0 as it should. This mod fixes it.

To reproduce try starting with --foreground option introduced in https://github.com/znuny/Znuny/pull/399 and then stopping daemon and watch daemon process exit code.

Type of change

Additional information

Related: https://github.com/znuny/Znuny/pull/109#issuecomment-910001106 Related: https://github.com/znuny/Znuny/pull/399 Author-Change-Id: IB#1110219

Checklist