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

Added option to run daemon without detaching #399

Open pboguslawski opened 1 year ago

pboguslawski commented 1 year ago

Proposed change

This mod adds parameter --foreground to otrs.Daemon.pl to allow running it without detaching.

Example /etc/systemd/system/unit.otrs-daemon.service unit file to supervise otrs daemon with systemd instead of cron:

[Unit]
Description=OTRS daemon
Wants=cron.service apache2.service mariadb.service postfix.service rsyslog.service
After=cron.service apache2.service mariadb.service postfix.service rsyslog.service

[Service]
ExecStart=/opt/otrs/bin/otrs.Daemon.pl start --foreground
ExecStop=/opt/otrs/bin/otrs.Daemon.pl stop
User=otrs
Restart=on-abort
RestartSec=30

[Install]
WantedBy=multi-user.target

Type of change

Additional information

Author-Change-Id: IB#1109757

Checklist

rkaldung commented 1 month ago

Internal issue 914