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.
Launch additional services
Section titled “Launch additional services”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:
alta initYou 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.
Service management
Section titled “Service management”In this example service name is alta2. Use the following commands to manage the service:
| Command | Description |
|---|---|
systemctl restart alta2 | Restart service |
systemctl start alta2 | Start service |
systemctl stop alta2 | Stop service |
systemctl status alta2 | Service status |
systemctl enable alta2 | Launch service on system startup |
systemctl disable alta2 | Disable autorun |
journalctl -fu alta2 | Service logs |
Remove service
Section titled “Remove service”Before removing service, stop it and turn off autorun:
systemctl stop alta2systemctl disable alta2Then, remove service from systemd:
rm /etc/systemd/system/alta2.serviceRemove configuration file if needed:
rm /etc/alta/alta2.conf