Skip to content

Create a systemd Service

Howell Munene edited this page May 15, 2026 · 1 revision

[Unit] Description=Mkopo Trading Bot Service After=network.target

[Service] Type=simple User=ubuntu WorkingDirectory=/home/ubuntu/trading-bot Environment="PATH=/home/ubuntu/trading-bot/venv/bin" ExecStart=/home/ubuntu/trading-bot/venv/bin/python /home/ubuntu/trading-bot/live/engine.py Restart=on-failure RestartSec=10

[Install] WantedBy=multi-user.target

Clone this wiki locally