Перейти к содержимому

Manage Alta Service

Это содержимое пока не доступно на вашем языке.

Learn how to control Alta services on your server: start, stop, restart, check logs, and run multiple instances for better performance and stability.

You can launch multiple Alta services on your server. Each service runs as a separate process with its own configuration and port. Common r easons to use multiple services:

  • Load distribution: Split channels across separate processes to balance resource usage
  • Improved stability: Isolate problematic channels that might affect other channels if they run in the same process

To create an additional service, launch the initialization wizard with the next command:

Terminal window
alta init

You will be prompted to enter a unique service name. This name will be used to identify and manage the service. For example, if you enter alta2, the service will be managed with the name alta2 in systemd.

In this example service name is alta2. Use the following commands to manage the service:

CommandDescription
systemctl restart alta2Restart service
systemctl start alta2Start service
systemctl stop alta2Stop service
systemctl status alta2Service status
systemctl enable alta2Launch service on system startup
systemctl disable alta2Disable autorun
journalctl -fu alta2Service logs

Before removing service, stop it and turn off autorun:

Terminal window
systemctl stop alta2
systemctl disable alta2

Then, remove service from systemd:

Terminal window
rm /etc/systemd/system/alta2.service

Remove configuration file if needed:

Terminal window
rm /etc/alta/alta2.conf