User Tools

Site Tools


wildfly

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision Both sides next revision
wildfly [2020/05/26 16:40]
mstraub Deployment Timeout
wildfly [2020/07/23 11:44]
mstraub
Line 40: Line 40:
 </​code>​ </​code>​
  
-==== System Service ​==== +==== systemd service ​====
- +
-=== systemd === +
- +
-Since Ubuntu 15.04 systemd replaced upstart as default init system.+
  
 Create the file ''/​etc/​systemd/​system/​wildfly.service''​ and adapt the IP to the IP the service is publicly accessible with: Create the file ''/​etc/​systemd/​system/​wildfly.service''​ and adapt the IP to the IP the service is publicly accessible with:
Line 76: Line 72:
 systemctl status wildfly systemctl status wildfly
 journalctl -f -u wildfly ​     # view log and follow it live journalctl -f -u wildfly ​     # view log and follow it live
-</​code>​ 
- 
-=== Upstart === 
- 
-Create ''/​etc/​init/​wildfly.conf''​ and adapt the IP to the IP the service is publicly accessible with: 
-<​code>​ 
-start on (local-filesystems and net-device-up IFACE!=lo) 
- 
-# stop on normal shutdown 
-stop on runlevel [016] 
- 
-# -b binds the IP for port 8080, -bmanagement for port 9990 
-exec sudo -u wildfly /​opt/​wildfly/​bin/​standalone.sh -b 127.0.0.1 -bmanagement 127.0.0.1 
-</​code>​ 
- 
-The log ''/​var/​log/​upstart/​wildfly.log''​ even includes system outs, messages printed from JNI code or crash / segfault information. 
- 
-Optionally select a specific config, e.g. ''​--server-config=standalone.xml''​ or use port offset when running several instances of WildFly on one machine with ''​-Djboss.socket.binding.port-offset=1''​ 
- 
- 
-Then start and stop WildFly with 
-<code bash> 
-sudo start wildfly 
-sudo stop wildfly 
 </​code>​ </​code>​
  
wildfly.txt · Last modified: 2020/10/29 14:13 by mstraub