Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
Openfire
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
Openfire
Commits
55236937
Commit
55236937
authored
May 02, 2014
by
akrherz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
OF-746 further improvements to debian init script and defaults file to
help locate JAVA_HOME
parent
3442ecf2
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
6 deletions
+9
-6
openfire.default
build/debian/openfire.default
+4
-0
openfire.init.d
build/debian/openfire.init.d
+5
-6
No files found.
build/debian/openfire.default
View file @
55236937
...
...
@@ -6,5 +6,9 @@
# This is a POSIX shell fragment
#
# If you wish to override the auto-detected JAVA_HOME variable, uncomment
# and change the following line.
#JAVA_HOME=/usr/java/default
# Additional options that are passed to the Daemon.
DAEMON_OPTS=""
build/debian/openfire.init.d
View file @
55236937
...
...
@@ -19,13 +19,17 @@
#
Description
:
Start
/
stop
openfire
jabber
server
###
END
INIT
INFO
#
Include
openfire
defaults
if
available
if
[
-
f
/
etc
/
default
/
openfire
]
;
then
.
/
etc
/
default
/
openfire
fi
#
Attempt
to
locate
JAVA_HOME
if
[
-
z
$
JAVA_HOME
];
then
JAVA_HOME
=$(
LC_ALL
=
C
update
-
alternatives
--
display
java
\
|
grep
best
\
|
grep
-
oe
\
/.*
\
/
bin
\
/
java
\
|
sed
'
s
/
\
/
jre
\
/.*
//g')
|
sed
'
s
/
\
/
bin
\
/
java
//g')
echo
"best java alternative in: "
$
JAVA_HOME
fi
...
...
@@ -38,11 +42,6 @@ DAEMON_LIB=${DAEMON_DIR}/lib
test
-
x
$
JAVA
||
exit
1
#
Include
openfire
defaults
if
available
if
[
-
f
/
etc
/
default
/
openfire
]
;
then
.
/
etc
/
default
/
openfire
fi
DAEMON_OPTS
=
"$DAEMON_OPTS -server -DopenfireHome=${DAEMON_DIR} \
-Dopenfire.lib.dir=${DAEMON_LIB} -classpath ${DAEMON_LIB}/startup.jar\
-jar ${DAEMON_LIB}/startup.jar"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment