So if you go to My documentation page , go down to point 8 and try and copy the Systemd unit file from the browser to an editor, the line returns are not preserved and in… (read more)
So if you go to My documentation page , go down to point 8 and try and copy the Systemd unit file from the browser to an editor, the line returns are not preserved and instead spaces are substituted. If I copy the text from a chrome browser into an editor, the new lines are preserved. I've copied the HTML source code below.
[Unit]
Description=Apache Tomcat 11.0 Web Application Container
After=network.target
[Service]
Type=forking
Environment="JAVA_HOME=/usr/lib/jvm/java-1.25.0-openjdk-amd64"
Environment="CATALINA_PID=/opt/tomcat/Base/temp/tomcat.pid"
Environment="CATALINA_HOME=/opt/tomcat/tom11/"
Environment="CATALINA_BASE=/opt/tomcat/Base/"
Environment="CATALINA_OPTS=-Xms512M -Xmx1024M -server -XX:+UseParallelGC"
Environment="JAVA_OPTS=-Djava.awt.headless=true -Djava.security.egd=file:/dev/./urandom"
ExecStart=/opt/tomcat/tom11/bin/startup.sh
ExecStop=/opt/tomcat/tom11/bin/shutdown.sh
User=tommy
Group=tommy
UMask=0007
RestartSec=10
Restart=always
[Install]
WantedBy=multi-user.target
So the code is rendering correctly in the browser, but is being incorrectly copied by Firefox. Note if you copy the above from this forum across to an editor the new lines are preserved, but if you copy it from the website they are not.