This document details the configuration of Retro AIM Server to run as an unprivileged user with systemd managing it as a production service.
Grab the latest Linux release from the releases page
Run the following commands:
$ sudo useradd ras
$ sudo mkdir -p /opt/ras
$ sudo mkdir -p /var/ras
Extract the archive using the usual tar invocation, and move the extracted contents into /opt/ras
** Set Ownership and Permissions **
$ sudo chown -R ras:ras /opt/ras
$ sudo chmod -R o-rx /opt/ras
** Copy the systemd service **
Place the ras.service file in /etc/systemd/system
** Reload systemd **
$ sudo systemctl daemon-reload
** Enable and start the service **
$ sudo systemctl enable --now ras.service
** Make sure the service is running **
$ sudo systemctl status ras.service
$ sudo journalctl -xeu ras.service
Note that the systemd service defines the configuration for Retro AIM Server directly, bypassing the usual run.sh script and settings.env. Customizations may be performed in /etc/systemd/system/ras.service.