# Copy to /etc/systemd/system/rotten-bot.service, then: # sudo systemctl daemon-reload # sudo systemctl enable --now rotten-bot # # This is the actual Discord gateway process (src/index.js) — separate from # rotten-bot-dashboard.service, which only runs the web admin panel. # Path matches the deployed location: /var/www/html/bot [Unit] Description=rotten-bot Discord gateway process After=network.target [Service] WorkingDirectory=/var/www/html/bot ExecStart=/usr/bin/node src/index.js Restart=always User=www-data EnvironmentFile=/var/www/html/bot/.env [Install] WantedBy=multi-user.target