<html><head><style type='text/css'>p { margin: 0; }</style></head><body><div style='font-family: Verdana; font-size: 10pt; color: #000000'><span>I'm trying to create a systemd service for a Java-based service and running into a networking error despite using "After=network.target"<br><br>Any suggestions as to which dependencies to use or whether this is working as expected?<br><br>The service fails during initial system start (6 times before giving up):<br>&gt; [root@as7-04 ~]# systemctl --no-pager --failed | grep jboss<br>&gt; jboss-as.service&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; loaded failed failed&nbsp;&nbsp;&nbsp;&nbsp; JBoss Application Server Defa<br><br>With the following error [1]:<br>&gt; ...<br>&gt; ... Exception in thread "main" java.net.UnknownHostException: as7-04: as7-04<br>&gt; ...<br><br>I can start it up without issue after the system is up:<br>&gt; [root@as7-04 ~]# systemctl start jboss-as.service<br>&gt; [root@as7-04 ~]# systemctl --no-pager | grep jboss<br>&gt; jboss-as.service&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; loaded active running&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; JBoss Application Server D<br><br>My service [2]:<br>&gt; ...<br>&gt; After=basic.target<br>&gt; After=network.target<br>&gt; After=syslog.target<br>&gt; ...<br><br>[1] </span><a href="https://gist.github.com/1070805">https://gist.github.com/1070805</a><br><span id="5824d463-9138-495a-9728-baf9eeeef7d1">[2] </span><a href="https://github.com/CheffPJ/jboss-as/blob/linux_init/linux/src/main/resources/lib/systemd/system/jboss-as.service" mce_href="https://github.com/CheffPJ/jboss-as/blob/linux_init/linux/src/main/resources/lib/systemd/system/jboss-as.service">https://github.com/CheffPJ/jboss-as/blob/linux_init/linux/src/main/resources/lib/systemd/system/jboss-as.service</a><span id="5824d463-9138-495a-9728-baf9eeeef7d1"><br><br>Thanks in Advance,<br><br><span name="x"></span>Pat McDonough</span><br></div></body></html>