File tree Expand file tree Collapse file tree 2 files changed +40
-4
lines changed
Expand file tree Collapse file tree 2 files changed +40
-4
lines changed Original file line number Diff line number Diff line change @@ -51,14 +51,11 @@ unpack: $(WF_TARBALL) clean
5151copy : unpack
5252 cp -R debian $(WF_DIRECTORY ) /
5353
54- $(WF_DIRECTORY ) /debian/wildfly.init : copy
55- find $(WF_DIRECTORY ) -name wildfly-init-debian.sh -exec cp {} $(WF_DIRECTORY ) /debian/wildfly.init \;
56-
5754conffiles : copy
5855 cd $(WF_DIRECTORY ) && find domain/ standalone/ -type f -exec echo " /opt/wildfly/{}" \; > debian/wildfly.conffiles
5956 cd $(WF_DIRECTORY ) && find bin/ \( -name ' *.conf' -o -name ' *.properties' \) -exec echo " /opt/wildfly/{}" \; >> debian/wildfly.conffiles
6057
61- prepare : $(WF_DIRECTORY ) /debian/wildfly.init conffiles PPA_VERSION
58+ prepare : $(WF_DIRECTORY ) /debian/wildfly.service conffiles PPA_VERSION
6259 cd $(WF_DIRECTORY ) && \
6360 dch --create --distribution=$(WF_DISTRIBUTION ) --package=wildfly \
6461 --newversion=$(WF_VERSION ) -1~$(WF_DISTRIBUTION ) ppa$(PPA_VERSION ) \
Original file line number Diff line number Diff line change 1+ [Unit]
2+ Description =The WildFly Application Server
3+ After =syslog.target network.target
4+ Before =httpd.service
5+
6+ [Service]
7+ # Assume standalone for default
8+ Environment =WILDFLY_MODE =standalone
9+
10+ # Assume no config or bind config
11+ Environment =WILDFLY_CONFIG =
12+ Environment =WILDFLY_BIND =
13+
14+ # Load in defaults file if exists
15+ EnvironmentFile =-/etc/default/wildfly
16+
17+ # Load in /etc/wildfly/ config file if exists
18+ EnvironmentFile =-/etc/wildfly/wildfly.conf
19+
20+ # Start wildfly in the background
21+ Environment =LAUNCH_JBOSS_IN_BACKGROUND =1
22+
23+ # Drop privileges to
24+ User =wildfly
25+ Group =wildfly
26+
27+ LimitNOFILE =102642
28+ PIDFile =/var/run/wildfly/wildfly.pid
29+
30+ ExecStart =/usr/bin/bash /opt/wildfly/bin/${WILDFLY_MODE}.sh $WILDFLY_CONFIG $WILDFLY_BIND
31+ ExecStop =/usr/bin/bash /opt/wildfly/bin/jboss-cli.sh --connect command =:shutdown
32+
33+ StandardOutput =journal
34+
35+ # Timeouts
36+ TimeoutStopSec =300
37+
38+ [Install]
39+ WantedBy =multi-user.target
You can’t perform that action at this time.
0 commit comments