From 4b95518037a335a4a46bb174387a99cab3c6e594 Mon Sep 17 00:00:00 2001 From: "Dr. Yves Kreis" Date: Wed, 6 Sep 2023 11:17:32 +0300 Subject: [PATCH] Prevent double logging by journald and rsyslogd --- lib/os/class.ISPConfigDebianOS.inc.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/lib/os/class.ISPConfigDebianOS.inc.php b/lib/os/class.ISPConfigDebianOS.inc.php index 309971d..8a97528 100644 --- a/lib/os/class.ISPConfigDebianOS.inc.php +++ b/lib/os/class.ISPConfigDebianOS.inc.php @@ -1445,6 +1445,13 @@ mailman-unsubscribe: "|/var/lib/mailman/mail/mailman unsubscribe mailman"'; $packages = $this->getPackagesToInstall('first'); $this->installPackages($packages); + if(in_array('rsyslog', $packages)) { + if(is_dir('/var/log/journal')) { + rmdir('/var/log/journal'); + $this->restartService('systemd-journald'); + } + } + if(ISPConfig::shallInstall('mail')) { $packages = array( 'dovecot-imapd', -- GitLab