[1] MLD-5.x / Development / [5.4 unstable] jonglisto-ng / 0.2.2-5 / Startscript klemmt
 

Offline NemoN

  • Member
  • **
  • Posts: 55
    • View Profile
Im aktuellen init.d script wird leider port gar nicht und AccessLogValve falsch gesetzt, dadurch startet der Tomcat nicht.
Fix Patch anbei:

Code: [Select]
--- jonglisto-ng.dist
+++ jonglisto-ng
@@ -10,9 +10,9 @@
  start)
  echo "Starting $NAME: "
  export JAVA_HOME=/usr/lib/jvm/open-java/
- #sed "s/port*/port = ${TOMCAT_PORT-8080}/" -i /usr/local/tomee/conf/server.xml
- sed "s/valves.AccessLogValve.*/valves.AccessLogValve = \"\/var\/log\/\"/" -i /usr/local/tomee/conf/server.xml
- sed "s/AsyncFileHandler.directory.*/AsyncFileHandler.directory = \/var\/log\//" -i /usr/local/tomee/conf/logging.properties
+ sed "s!port=\"\(.*\)\" protocol=\"HTTP/1.1\"!port=\"${TOMCAT_PORT-8080}\" protocol=\"HTTP/1.1\"!" -i /usr/local/tomee/conf/server.xml
+ sed "s!AccessLogValve\" directory=\"\(.*\)\"!AccessLogValve\" directory=\"/var/log\"!" -i /usr/local/tomee/conf/server.xml
+ sed "s!AsyncFileHandler.directory.*!AsyncFileHandler.directory = /var/log/!" -i /usr/local/tomee/conf/logging.properties
  mkdir -p /var/cache/jonglisto-ng
  /usr/local/tomee/bin/catalina.sh start >>/var/log/sysinit 2>&1
  check_status

Offline clausmuus

  • Administrator
  • Expert Member
  • ********
  • Posts: 20456
    • View Profile
    • ClausMuus.de
[5.4 unstable] jonglisto-ng / 0.2.2-5 / Startscript klemmt
« Reply #1 on: January 18, 2019, 11:29:23 »
Danke für den Hinweis. Ich hab's mit aufgenommen.
MLD 5.5 - Raspberry PI - 7" Touch TFT - Squeeze Play
MLD 5.5 - lirc yaUsbIR - OctopusNet - XFX GeForce 9300 mit Intel E3200 - 2GB RAM - 12TB HDD - Lian Li PC-C37B - Samsung LE40A559

[1] MLD-5.x / Development / [5.4 unstable] jonglisto-ng / 0.2.2-5 / Startscript klemmt
 



Users Online Users Online

0 Members and 1 Guest are viewing this topic.