<div dir="auto">@Swithun Java has a parameterisation thing that specifies passing the "-D<argument>" thing with no spaces...<br><br><div data-smartmail="gmail_signature">// Sent from a mobile device. Typos and brevity may transpire.</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, 8 Dec 2020, 19:17 Swithun Crowe, <<a href="mailto:swithun@swithun.com">swithun@swithun.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello<br>
<br>
TH> It’s a line like this in the systemd service file:ExecStart=/bin/java<br>
TH> -Xmx1200m -Dhttp.nonProxyHosts=*.service.nexte-Dhttps.proxyHost=<a href="http://internal-outbounds-nat-1.eu-west-2.elb.amazoneaws.com" rel="noreferrer noreferrer" target="_blank">internal-outbounds-nat-1.eu-west-2.elb.amazoneaws.com</a><br>
TH> -Dhttps.proxyPort=3128 -Dlogging.config=/opt/my-api/config/logback.xml<br>
TH> -jar /opt/my-api/my-api-6.1.jar<br>
<br>
Has the line got mangled in an email, or should there be spaces between<br>
the -D... flags?<br>
<br>
Looking at my systemd .service files, the ExecStart lines have arguments<br>
that get passed to the commands.<br>
<br>
TH> Also, how can I log into different server boxes and run these two<br>
TH> commands in a shell but with some kind of nohup option (or similar) so<br>
TH> the process won’t crash if I get timed out (kicked out) from the<br>
TH> shells:<br>
<br>
Can you install GNU screen or tmux on these servers? If you start a<br>
session, and run the commands in there, you can disconnect (or get<br>
disconnected) and the processes will keep running.<br>
<br>
Good luck.<br>
<br>
Swithun.-- <br>
EdLUG mailing list<br>
<a href="mailto:EdLUG@mailman.lug.org.uk" target="_blank" rel="noreferrer">EdLUG@mailman.lug.org.uk</a><br>
<a href="https://lists.edlug.org.uk/mailman/listinfo/edlug" rel="noreferrer noreferrer" target="_blank">https://lists.edlug.org.uk/mailman/listinfo/edlug</a></blockquote></div>