[Unit] Description=Grid Trading Bot (Tradernet/Cifra.by) After=network.target [Service] Type=simple User=root WorkingDirectory=/root/grid-bot EnvironmentFile=/root/grid-bot/.env ExecStart=/root/grid-bot/venv/bin/python /root/grid-bot/main.py ExecStop=/bin/kill -SIGINT $MAINPID Restart=on failure RestartSec=10 StandardOutput=append:/root/grid-bot/bot.log StandardError=append:/root/grid-bot/bot.log [Install] WantedBy=multi-user.target