Skip to content

Run RZUB

Sepehr Gh edited this page Apr 4, 2021 · 4 revisions

Assuming you have rzub.jar, settings.json and access.json in same location:

Linux:

chmod +x rzub.jar # Only one time after each update is enough. Makes it executable.
./rzub.jar

Windows (also works on Linux):

java -jar rzub.jar

Arguments:

You can pass server port like --server.port=9000. Replace 9000 with any port of your choice.

If your settings.json file is not in same location, you can pass the location like: --rzub.conf.settings=/path/to/settings.json

If your access.json file is not in same location, you can pass the location like: --rzub.conf.access=/path/to/access.json

If you want to change logging directory, try: --logging.file.name:/path/to/folder/rzub.log

Detaching from process (optional)

There are several ways to detach from a running process in a Linux box. You may use screen sessions for example, you can use a docker container, or you may want to consider installing your apps as a service. That way you will be able to run commands such as service appname stop|start|reload

If you are running on a Linux box and you want to create service for RZUB, see this shell script that I wrote or read about systemd by yourself. But here is what you can do with my script:

Clone this wiki locally