Skip to content

Commit

Permalink
Fixes #26040: Have a stable webapp log file - packaging part
Browse files Browse the repository at this point in the history
  • Loading branch information
VinceMacBuche committed Dec 10, 2024
1 parent 39d30b8 commit 3c09120
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 24 deletions.
41 changes: 21 additions & 20 deletions rudder-server/SOURCES/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -137,42 +137,43 @@ rudder-server-version:
[ -f ../../versions ] && cat ../../versions >> $@ || true

install: build rudder-server-version initial-promises initial-ncf
mkdir -p $(DESTDIR)/opt/rudder/etc/postgresql/
mkdir -p $(DESTDIR)/opt/rudder/etc/postgresql
mkdir -p $(DESTDIR)/usr/lib/systemd/system
mkdir -p $(DESTDIR)/opt/rudder/share/package-scripts/
mkdir -p $(DESTDIR)/opt/rudder/share/versions/
mkdir -p $(DESTDIR)/opt/rudder/share/package-scripts
mkdir -p $(DESTDIR)/opt/rudder/share/versions
install -m 644 rudder-sources/rudder/webapp/sources/rudder/rudder-core/src/main/resources/reportsSchema.sql $(DESTDIR)/opt/rudder/etc/postgresql/
install -m 644 rudder-server.service $(DESTDIR)/usr/lib/systemd/system/
install -m 755 rudder-server-postinst $(DESTDIR)/opt/rudder/share/package-scripts/
install -m 644 rudder-server-version $(DESTDIR)/opt/rudder/share/versions/
mkdir -p $(DESTDIR)/opt/rudder/etc/
mkdir -p $(DESTDIR)/opt/rudder/etc
mkdir -p $(DESTDIR)/opt/rudder/etc/plugins/licenses
mkdir -p $(DESTDIR)/opt/rudder/etc/hooks.d/
mkdir -p $(DESTDIR)/opt/rudder/bin/
mkdir -p $(DESTDIR)/opt/rudder/share/webapps/
mkdir -p $(DESTDIR)/opt/rudder/share/rudder-plugins/
mkdir -p $(DESTDIR)/opt/rudder/etc/hooks.d
mkdir -p $(DESTDIR)/opt/rudder/bin
mkdir -p $(DESTDIR)/opt/rudder/share/webapps
mkdir -p $(DESTDIR)/opt/rudder/share/rudder-plugins
mkdir -p $(DESTDIR)/opt/rudder/share/tools
mkdir -p $(DESTDIR)/opt/rudder/share/plugins/
mkdir -p $(DESTDIR)/opt/rudder/share/upgrade-tools/
mkdir -p $(DESTDIR)/opt/rudder/share/certificates/
mkdir -p $(DESTDIR)/opt/rudder/share/selinux/
mkdir -p $(DESTDIR)/opt/rudder/share/package-scripts/
mkdir -p $(DESTDIR)/opt/rudder/share/plugins
mkdir -p $(DESTDIR)/opt/rudder/share/upgrade-tools
mkdir -p $(DESTDIR)/opt/rudder/share/certificates
mkdir -p $(DESTDIR)/opt/rudder/share/selinux
mkdir -p $(DESTDIR)/opt/rudder/share/package-scripts
mkdir -p $(DESTDIR)/var/rudder/inventories/received
mkdir -p $(DESTDIR)/var/rudder/run
mkdir -p $(DESTDIR)/var/rudder/ldap/openldap-data
mkdir -p $(DESTDIR)/var/log/rudder/apache2/
mkdir -p $(DESTDIR)/var/log/rudder/webapp
mkdir -p $(DESTDIR)/var/log/rudder/apache2
mkdir -p $(DESTDIR)/var/log/rudder/webapp/jetty
mkdir -p $(DESTDIR)/var/log/rudder/webapp/jvm
mkdir -p $(DESTDIR)/var/log/rudder/webapp/api
mkdir -p $(DESTDIR)/var/log/rudder/ldap
mkdir -p $(DESTDIR)/var/rudder/run
mkdir -p $(DESTDIR)/etc/$(APACHE_VHOSTDIR)/
mkdir -p $(DESTDIR)/etc/$(APACHE_CONFDIR)/
mkdir -p $(DESTDIR)/etc/sysconfig/
mkdir -p $(DESTDIR)/etc/sysconfig
mkdir -p $(DESTDIR)/etc/default
mkdir -p $(DESTDIR)/usr/share/doc/rudder
mkdir -p $(DESTDIR)/usr/share/
mkdir -p $(DESTDIR)/usr/bin/
mkdir -p $(DESTDIR)/usr/lib/systemd/system/
mkdir -p $(DESTDIR)/opt/rudder/share/versions/
mkdir -p $(DESTDIR)/usr/bin
mkdir -p $(DESTDIR)/usr/lib/systemd/system
mkdir -p $(DESTDIR)/opt/rudder/share/versions

cd openldap-source && make $(DEBUGOPT) install DESTDIR=$(DESTDIR)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<New id="ServerLog" class="java.io.PrintStream">
<Arg>
<New class="org.eclipse.jetty.util.RolloverFileOutputStream">
<Arg><Property name="jetty.console-capture.dir" default="/var/log/rudder/webapp" />/yyyy_mm_dd.stderrout.log
<Arg><Property name="jetty.console-capture.dir" default="/var/log/rudder/webapp/jetty" />/yyyy_mm_dd.stderrout.log
</Arg>
<Arg type="boolean">
<Property name="jetty.console-capture.append" default="false" />
Expand Down
2 changes: 1 addition & 1 deletion rudder-server/SOURCES/rudder-jetty.conf
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ JAVA_GC=${JAVA_GC:="-XX:+UseG1GC

# GC log: file path, log level (jdk format, see:
# https://docs.oracle.com/en/java/javase/11/tools/java.html#GUID-BE93ABDC-999C-4CB5-A88B-1994AAAC74D5)
JAVA_GC_LOG_FILE=${JAVA_GC_LOG_FILE:="/var/log/rudder/webapp/jvm-gc.log"}
JAVA_GC_LOG_FILE=${JAVA_GC_LOG_FILE:="/var/log/rudder/webapp/jvm/jvm-gc.log"}
JAVA_GC_LOG=${JAVA_GC_LOG:="gc=info,gc+cpu=info,gc+stringdedup=info"}
JAVA_GC_LOG_ROTATE=${JAVA_GC_LOG_ROTATE:="filecount=5,filesize=50M"}

Expand Down
4 changes: 2 additions & 2 deletions rudder-server/SOURCES/rudder-jetty.default
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,9 @@ JAVA_MAXPERMSIZE=256
# You can specify alternatives options for JVM GC logs: file path, log level, rotation parameters.

# Configure alternative log file path. Default is:
#JAVA_GC_LOG_FILE="/var/log/rudder/webapp/jvm-gc.log"
#JAVA_GC_LOG_FILE="/var/log/rudder/webapp/jvm/jvm-gc.log"
# For example for a specific file for debug logs:
#JAVA_GC_LOG_FILE="/var/log/rudder/webapp/jvm-gc-debug.log"
#JAVA_GC_LOG_FILE="/var/log/rudder/webapp/jvm/jvm-gc-debug.log"

# Configure log level for debug. Default gives general info about GC timing:
#JAVA_GC_LOG="gc=info,gc+cpu=info,gc+stringdedup=info"
Expand Down

0 comments on commit 3c09120

Please sign in to comment.