----- Original Message ----- > I'm trying to create a systemd service for a Java-based service and > running into a networking error despite using "After=network.target" > > Any suggestions as to which dependencies to use or whether this is > working as expected? > > The service fails during initial system start (6 times before giving > up): > > [root@as7-04 ~]# systemctl --no-pager --failed | grep jboss > > jboss-as.service loaded failed failed JBoss Application Server Defa > > With the following error [1]: > > ... > > ... Exception in thread "main" java.net.UnknownHostException: > > as7-04: as7-04 > > ... > > I can start it up without issue after the system is up: > > [root@as7-04 ~]# systemctl start jboss-as.service > > [root@as7-04 ~]# systemctl --no-pager | grep jboss > > jboss-as.service loaded active running JBoss Application Server D > > My service [2]: > > ... > > After=basic.target > > After=network.target > > After=syslog.target > > ... > > [1] https://gist.github.com/1070805 > [2] > https://github.com/CheffPJ/jboss-as/blob/linux_init/linux/src/main/resources/lib/systemd/system/jboss-as.service
I updated the config temporarily, so use this URL for the old version referred to in the initial email: https://github.com/CheffPJ/jboss-as/blob/5d68d2352f985c400fabca7274be5820e318d915/linux/src/main/resources/lib/systemd/system/jboss-as.service > > Thanks in Advance, > > Pat McDonough _______________________________________________ systemd-devel mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/systemd-devel
