Systemd
Self-Hosted Linux VPS
Run Argus on Ubuntu / Debian VPS with systemd process supervision and automatic restart.
Create Systemd Service File
# /etc/systemd/system/argus.service
[Unit]
Description=Argus Autonomous Minecraft Bot
After=network.target
[Service]
Type=simple
User=ubuntu
WorkingDirectory=/home/ubuntu/argus-bot
ExecStart=/usr/bin/node index.js
Restart=always
RestartSec=10
Environment=NODE_ENV=production
[Install]
WantedBy=multi-user.target
Enable and Start Service
sudo systemctl daemon-reload
sudo systemctl enable argus
sudo systemctl start argus
sudo journalctl -u argus -f