mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-08 22:33:25 +00:00
Initial commit
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
if [ "x$WILDFLY_HOME" = "x" ]; then
|
||||
WILDFLY_HOME="{{ wf_homedir }}"
|
||||
fi
|
||||
|
||||
if [[ "$1" == "domain" ]]; then
|
||||
$WILDFLY_HOME/bin/domain.sh -c "$2" -b "$3"
|
||||
else
|
||||
$WILDFLY_HOME/bin/standalone.sh -c "$2" -b "$3"
|
||||
fi
|
||||
@@ -0,0 +1,16 @@
|
||||
[Unit]
|
||||
Description=The WildFly Application Server
|
||||
After=syslog.target network.target
|
||||
Before=httpd.service
|
||||
|
||||
[Service]
|
||||
Environment=LAUNCH_JBOSS_IN_BACKGROUND=1
|
||||
EnvironmentFile=-{{ wf_homedir }}/wildfly.conf
|
||||
User=wildfly
|
||||
LimitNOFILE=102642
|
||||
PIDFile=/var/run/wildfly/wildfly.pid
|
||||
ExecStart={{ wf_homedir }}/bin/launch.sh $WILDFLY_MODE $WILDFLY_CONFIG $WILDFLY_BIND
|
||||
StandardOutput=null
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
Reference in New Issue
Block a user