Zum Hauptinhalt springen

RIWA UAC Auto Launch, Disk Monitor, and CLI Tool

Overview

This document contains instructions on how to setup auto launch and the disk monitor provided with the RIWA UAC, along with how to utilize the included RIWA UAC CLI tool.

Auto Launch

To have the RIWA UAC launch on boot, you will need to run the following command in a terminal window:

riwa enable

This will now launch the RIWA UAC software everytime you start up your device.

To disable the RIWA UAC from launching on boot, run the following command in a terminal window:

riwa disable

Disk Monitor

As the system generates logs continuously throughout the day, it's important to prevent excessive disk usage. To automate this, we provide options that sets up a cron job to monitor a specified directory and remove the oldest files when a size threshold is exceeded.

To setup one of these cron jobs, run the following command in the terminal:

riwa disk enable <dir> <threshold%>

Where <dir> is replaced with the path to the directory you want to monitor, while <threshold%> is to be replaced with the value you wish to have the monitor start deleting logs given the folder size is to exceed the total disk space.

To delete all the cron jobs, run the following command in the terminal:

riwa disk disable

RIWA Tools and CLI

Accessing RIWA CLI Tools

To view the additional services / tools offered by the RIWA system, start by right-clicking on the desktop and pressing the Open In Terminal button which will open up a new terminal window.

desk_term

From here, you can view the additional services / tools offered by typing the following into the terminal:

riwa --help

riwa_help

By typing this command into the terminal, the terminal should prompt you with a list of services and maintenance options to help use and track your RIWA system.

For in-depth details regarding the services offered with your RIWA system, please refer to the Services section of this documentation.

For in-depth details regarding the maintenance options offered with your RIWA system, please refer to the Maintenance section of this documentation.

riwa_options

RIWA Services

To run any RIWA service command, use the following structure:

riwa [option]

The option parameter is to replaced with any of the options listed below (options listed inside <> indicate they are required):

start           // Start all RIWA services
stop // Stop all RIWA services
restart // Restart all RIWA services
status // Prints the current status of all RIWA services
logs <service> // Prints out the logs in real time for a RIWA service
enable // Enables all RIWA services to start on boot
disable // Disables all RIWA services from starting on boot

RIWA Maintenance

To run any RIWA maintenance commands, use the following structure:

riwa [option]

The option parameter is to replaced with any of the options listed below (options listed inside <> indicate they required, while options listed inside [] indicate they are optional):

uninstall [--keep-db]               // Removes all RIWA software from the host device. 
backup [<dir>] [--host] [--port] // Saves a backup of the RIWA's current database
disk enable <dir> <threshold%> // Enables a disk monitor which notifies users when a threshold has been reached
disk disable // Disables any previous set up disk monitors
--help // Prints out the help message shown above
--version // Prints out the RIWA version currently installed on the host system

RIWA CLI

The RIWA CLI is a tool offered alongside the RIWA system which allows the user to easily manage their RIWA services through the use of a tool integrated with the users terminal.

To run the RIWA CLI, users must run the following command in their terminal:

riwa

riwa_cli

After launching the RIWA CLI, users will see two main sections inside their terminal; on the left side bar, users will see a list of the installed RIWA services on their system alongside a coloured indicator for their current status. The second larger section of the RIWA CLI, shows an active log of the current messages being sent by the RIWA system. This can include things such as service shutdowns, errors, etc.

hinweis

A green circle beside a service indicates the service is online, whilst a red circle beside a service indicates the service is offline.

riwa_cli_launched

To navigate through the RIWA CLI, a handful of keybinds have been integrated with the software to better use the system. To access these keybinds, users must press ? on their keyboard. After pressing the question mark on their keyboard, users will see a message similar to the following which indicates each keybind integrated with the system and their purpose:

tipp

There are specific keybinds for the two main sections mentioned above which are shown at the bottom of the RIWA CLI. Please refer to those keybinds alongside those listed in the image below.

riwa_CLI_keybinds