Alexandros Kosiaris has uploaded a new change for review. https://gerrit.wikimedia.org/r/243182
Change subject: otrs: disable the scheduler watchdog ...................................................................... otrs: disable the scheduler watchdog OTRS normally ships a watchdog scheduler cron entry that watches the scheduler and restarts it if it dies. That mode unfortunately is not compatible with systemd. Purge the scheduler and rely on systemd to watch over the scheduler. Also pass --force to both start and stop to avoid the PID handling issues that may arise with the scheduler and which are not possible to happen under systemd Change-Id: Iae3b8a6288856ba789756be04e4555608050afe8 --- M modules/otrs/manifests/init.pp M modules/otrs/templates/initscripts/otrs-scheduler.systemd.erb 2 files changed, 7 insertions(+), 3 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/operations/puppet refs/changes/82/243182/1 diff --git a/modules/otrs/manifests/init.pp b/modules/otrs/manifests/init.pp index 1ca2b1d..a8d4498 100644 --- a/modules/otrs/manifests/init.pp +++ b/modules/otrs/manifests/init.pp @@ -148,8 +148,12 @@ hasrestart => false, } } + # OTRS normally ships a watchdog scheduler cron entry that watches the + # scheduler and restarts it if it dies. That mode unfortunately is not + # compatible with systemd. Purge the scheduler and rely on systemd to + # watch over the scheduler file { '/etc/cron.d/otrs-scheduler': - ensure => 'file', + ensure => absent, owner => 'root', group => 'root', mode => '0444', diff --git a/modules/otrs/templates/initscripts/otrs-scheduler.systemd.erb b/modules/otrs/templates/initscripts/otrs-scheduler.systemd.erb index 6592627..c26304e 100644 --- a/modules/otrs/templates/initscripts/otrs-scheduler.systemd.erb +++ b/modules/otrs/templates/initscripts/otrs-scheduler.systemd.erb @@ -10,8 +10,8 @@ RestartSec=2s TimeoutStopSec=60 Type=forking -ExecStart=/opt/otrs/bin/otrs.Scheduler.pl -a start -ExecStop=/opt/otrs/bin/otrs.Scheduler.pl -a stop +ExecStart=/opt/otrs/bin/otrs.Scheduler.pl -a start --force +ExecStop=/opt/otrs/bin/otrs.Scheduler.pl -a stop --force [Install] WantedBy=multi-user.target -- To view, visit https://gerrit.wikimedia.org/r/243182 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: Iae3b8a6288856ba789756be04e4555608050afe8 Gerrit-PatchSet: 1 Gerrit-Project: operations/puppet Gerrit-Branch: production Gerrit-Owner: Alexandros Kosiaris <akosia...@wikimedia.org> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits