This guide explains how to install and uninstall Auto Upgrader, the tool responsible for keeping your services up to date.
You can install the Auto Upgrader in one of three ways:
- As a process (using PM2)
- As a system service (using systemd)
As a container (using Docker)
- Set the execution method in
.env:
SUBVORTEX_EXECUTION_METHOD=process- Run the setup script:
./subvortex/auto_upgrader/deployment/process/auto_upgrader_process_setup.sh- Start the Auto Upgrader:
./subvortex/auto_upgrader/deployment/process/auto_upgrader_process_start.sh- Verify it's running:
pm2 listYou should see a process named subvortex-auto-upgrader.
To check logs:
pm2 log subvortex-auto-upgrader- Set the execution method in
.env:
SUBVORTEX_EXECUTION_METHOD=service- Run the setup script:
./subvortex/auto_upgrader/deployment/service/auto_upgrader_service_setup.sh- Start the Auto Upgrader:
./subvortex/auto_upgrader/deployment/service/auto_upgrader_service_start.sh- Check the service status:
systemctl status subvortex-auto-upgraderYou should see something like
Loaded: loaded (/etc/systemd/system/subvortex-auto-upgrader.service; enabled; vendor preset: enabled)
Active: active (running) since Thu 2025-04-10 11:51:27 BST; 6s ago
Main PID: 2229560 (python3)
Tasks: 10 (limit: 28765)
Memory: 57.9M
CPU: 1.592s
CGroup: /system.slice/subvortex-auto-upgrader.service
└─2229560 /root/SubVortex.AutoUpgrader/subvortex/auto_upgrader/venv/bin/python3 -m subvortex.auto_upgrader.src.mainTo view logs:
tail -f /var/log/subvortex-auto-upgrader/subvortex-auto-upgrader.log
⚠️ The Auto Upgrader is not yet available to run inside a Docker container. Please run it viaserviceorprocess.
Before installing the Auto Upgrader as a container, be sure you have docker installed. If not, you can run
./scripts/docker/docker_setup.sh- Set the execution method in
.env:
SUBVORTEX_EXECUTION_METHOD=docker- Run the setup script:
./subvortex/auto_upgrader/deployment/docker/auto_upgrader_docker_setup.sh- Start the Auto Upgrader:
./subvortex/auto_upgrader/deployment/docker/auto_upgrader_docker_start.sh- Confirm it's running:
docker psLook for a container named subvortex-auto-upgrader.
To follow logs:
docker logs -f subvortex-auto-upgraderTo stop and remove the Auto Upgrader running as a process:
./subvortex/auto_upgrader/deployment/process/auto_upgrader_process_teardown.shConfirm it's removed:
pm2 listThe subvortex-auto-upgrader process should no longer appear.
To uninstall the Auto Upgrader running as a system service:
./subvortex/auto_upgrader/deployment/service/auto_upgrader_service_teardown.shCheck that the service is removed:
systemctl status subvortex-auto-upgraderYou should see:
Unit subvortex-auto-upgrader.service could not be found.
⚠️ The Auto Upgrader is not yet available to run inside a Docker container. Please run it viaserviceorprocess.
To tear down the Auto Upgrader container:
./subvortex/auto_upgrader/deployment/docker/auto_upgrader_docker_teardown.shVerify it's gone:
docker psThe subvortex-auto-upgrader container should no longer be listed.
Need help or want to chat with other SubVortex users?
Join us on Discord!