Initial import: grid-bot — grid trading bot for BTC-USDT on Cifra Markets
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
[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
|
||||
Reference in New Issue
Block a user