-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathhedged-bot.service
More file actions
32 lines (27 loc) · 823 Bytes
/
hedged-bot.service
File metadata and controls
32 lines (27 loc) · 823 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
[Unit]
Description=Hedged Trading Bot - Automated Crypto Trading
After=network-online.target
Wants=network-online.target
[Service]
Type=simple
User=YOUR_USERNAME
Group=YOUR_USERNAME
WorkingDirectory=/path/to/hedged-trading-bot
Environment="PATH=/path/to/hedged-trading-bot/venv/bin"
ExecStart=/path/to/hedged-trading-bot/venv/bin/python main.py --mode live --config config.yaml
# Restart policy
Restart=always
RestartSec=10
StartLimitInterval=200
StartLimitBurst=5
# Logging
StandardOutput=append:/path/to/hedged-trading-bot/logs/systemd.log
StandardError=append:/path/to/hedged-trading-bot/logs/systemd-error.log
# Security
NoNewPrivileges=true
PrivateTmp=true
ProtectSystem=strict
ProtectHome=true
ReadWritePaths=/path/to/hedged-trading-bot/data /path/to/hedged-trading-bot/logs
[Install]
WantedBy=multi-user.target