Skip to content

Instantly share code, notes, and snippets.

@marekjelen
Last active August 23, 2017 13:00
Show Gist options
  • Star 6 You must be signed in to star a gist
  • Fork 4 You must be signed in to fork a gist
  • Save marekjelen/8568448 to your computer and use it in GitHub Desktop.
Save marekjelen/8568448 to your computer and use it in GitHub Desktop.
WildFly as a Systemd service
[Unit]
Description=WildFly application server
After=network.target
[Service]
Type=simple
User=wildfly
Group=wildfly
ExecStart=/opt/wildfly/bin/standalone.sh
[Install]
WantedBy=multi-user.target
@shwetabharti
Copy link

Hi,

Can you tell me how can one bind the IP while starting the wildfly service via systemd wildfly.service file. More precisely, my agenda is to start the wildfly service in standalone mode and binding an IP (a.b.c.d) with it. Till now I was manually starting the service (without systemd). Moreover the parameter "ExecStart=/app_server/wildfly/bin/standalone.sh -b a.b.c.d" in systemd is not working for me. Do you know any workaround?

@sjas
Copy link

sjas commented Aug 23, 2017

try and see wether it works, didnt test this:

ExecStart=/bin/sh -c "/app_server/wildfly/bin/standalone.sh -b a.b.c.d"

@sjas
Copy link

sjas commented Aug 23, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment