0

How to create/define the 'working directory'?

csjjpm 5 years ago updated 5 years ago 2

I am on FreeBSD as a root user.

I downloaded the .jar file and placed it in a 'Ubooquity' directory in my user folder.  When I ran it from a browser (:2203/admin) it created all the associated files and folder structure in the root of my file system.

What have I dont wrong?  How can I fix or change this?  I don't mind starting again.

I used a script to set it to run at startup


#!/bin/sh

exec 2> /tmp/rc.local.log
exec 1>&2
set -x

nohup /usr/local/openjdk8/bin/java -jar /mnt/Ubooquity.jar --libraryport 2202 --adminport 2203 --remoteadmin

exit 0