<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>> [root@as7-04 ~]# systemctl --no-pager --failed | grep jboss<br>> jboss-as.service loaded failed failed JBoss Application Server Defa<br><br>With the following error [1]:<br>> ...<br>> ... Exception in thread "main" java.net.UnknownHostException: as7-04: as7-04<br>> ...<br><br>I can start it up without issue after the system is up:<br>> [root@as7-04 ~]# systemctl start jboss-as.service<br>> [root@as7-04 ~]# systemctl --no-pager | grep jboss<br>> jboss-as.service loaded active running JBoss Application Server D<br><br>My service [2]:<br>> ...<br>> After=basic.target<br>> After=network.target<br>> After=syslog.target<br>> ...<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>