Xentara v2.0.3
User Manual
systemd Service (Linux only)
See also
systemd System and Service Manager at freedesktop.org

Under Linux, the Xentara package contains a service unit file for the systemd service manager. The file is a template unit file that allows you to enable a service that will automatically start Xentara when the system is started.

The Xentara systemd unit is called xentara@.service. The @ symbol at the end of the name tells systemd that this is a template unit file. systemd expects the template parameter to be placed after the @ symbol when referring to the service. The template parameter for the Xentara service is the user name of the Linux user under which Xentara should be run.

Enter the following command in a shell to tell systemd to start a service that runs Xentara as the Linux user username:

sudo systemctl enable xentara@username.service
Note
The user executing this command will need special privileges to be able to use sudo(8). This is usually accomplished by adding the user to the sudo user group. This can only be done by the root user, or by another user that already has sudo access.

Xentara will be run without parameters, and will thus search for a model file a model file in the default locations. You should normally place the model file in the user’s home directory under .config/xentara/model.json. For instance, for the user username used in the examples on this page, the model file should be placed under ~username/.config/xentara/model.json. The same goes for the config file, if required.

You can stop and restart the service using the following commands:

sudo systemctl stop xentara@username.service
sudo systemctl start xentara@username.service

To restart the service (e.g. to reload a changed model file), use the following command:

sudo systemctl restart xentara@username.service

You can print the status of the Xentara service, together with the last log entires, using the following command:

sudo systemctl status xentara@username.service

To disable the service entirely, so that Xentara is no longer started automatically, use the following command:

sudo systemctl disable xentara@username.service
man pages
systemd(1), systemctl(1), systemd.service(5), systemd.unit(5)