On Monday, May 2, 2022 at 1:14:45 PM UTC-6 you wrote:
> Hello, > I recently upgraded Jenkins from 2.263.4/2.303.3 to 2.332.2 on three > CentOS 7 machines, using the official jenkins.io packages from the > redhat-stable repository. > While Jenkins (since years!) always saved its log as /var/log > /jenkins/jenkins.log, now it sends all log messages to syslog > (/var/log/message) instead. > Was this an expected change? > > Yes, that is an expected change. The Jenkins 2.332.2 upgrade guide notes that Jenkins has switched from System V init to systemd. Read more about it at https://www.jenkins.io/doc/upgrade-guide/2.332/ The Jenkins 2.332.2 changelog notes that Jenkins has switched from System V init to systemd. Read more about it at https://www.jenkins.io/changelog-stable/#v2.332.1 The "What's new in Jenkins 2.332.2 livestream" notes that Jenkins has switched from System V init to systemd. Learn more about it at https://youtu.be/JO0BSpVjUJ8 The "Managing systemd services" page in the Jenkins documentation gives more information about managing systemd services with Jenkins. See https://www.jenkins.io/doc/book/system-administration/systemd-services/ The "Managing the systemd service on CentOS 7.9" video by Darin Pope provides more information at https://youtu.be/MkokjTQ2ngc?list=PLvBBnHmZuNQJeznYL2F-MpZYBUeLIXYEe > What's more, I also noticed that a "%C" directory has been created in > Jenkins' home which only contains a jenkins/war subdir and the contents I > list below. > > In the systemd service definition > (/usr/lib/systemd/system/jenkins.service) indeed I now see: > > -------------------- > # Location of the exploded WAR > Environment="JENKINS_WEBROOT=%C/jenkins/war" > > # Location of the Jenkins log. By default, systemd-journald(8) is used. > #Environment="JENKINS_LOG=%L/jenkins/jenkins.log" > -------------------- > > I tried performing a clean install on a fresh VM and the result is the > same. > Is this a bug in the official Jenkins packages? > I suppose %C and %L were meant to be something else... > Can I safely change this configuration? > > Yes, you can change that configuration. Per https://www.freedesktop.org/software/systemd/man/systemd.unit.html#Specifiers , the '%C' should be expanded by systemd to be the system cache directory. On my Red Hat Enterprise Linux 8 that is /var/cache. Based on https://issues.jenkins.io/browse/JENKINS-68313, it appears that the CentOS 7 implementation of systemd does not support the '%C' specifier. Replace it with the text for the cache directory on your operating system. Mark Waite -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/2d7e8855-30d9-4422-8c6e-52e8fcb0f07bn%40googlegroups.com.