Skip to content

Commit

Permalink
0004382: Initd installation: need to specify -Djava.io.tmpdir on command
Browse files Browse the repository at this point in the history
line in initd file
  • Loading branch information
philipmarzullo64 committed Apr 30, 2020
1 parent e57b779 commit f758ccd
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions symmetric-wrapper/src/main/resources/symmetricds.initd
Expand Up @@ -17,6 +17,7 @@

JAVA="${wrapper.java.command}"
JARFILE="${wrapper.jarfile}"
SYM_OPTIONS="${wrapper.home}/tmp"
SYM_HOME="${wrapper.home}"
export SYM_HOME
RUN_AS_USER="${wrapper.run.as.user}"
Expand Down Expand Up @@ -47,16 +48,16 @@ cd "$SYM_HOME"

case "$1" in
start)
"$JAVA" -jar "$JARFILE" start
"$JAVA" "$SYM_OPTIONS" -jar "$JARFILE" start
;;
stop)
"$JAVA" -jar "$JARFILE" stop
"$JAVA" "$SYM_OPTIONS" -jar "$JARFILE" stop
;;
restart)
"$JAVA" -jar "$JARFILE" restart
"$JAVA" "$SYM_OPTIONS" -jar "$JARFILE" restart
;;
status)
"$JAVA" -jar "$JARFILE" status
"$JAVA" "$SYM_OPTIONS" -jar "$JARFILE" status
;;
*)
echo "Usage: `basename $0` {start|stop|restart|status}"
Expand Down

0 comments on commit f758ccd

Please sign in to comment.