| 1 | [Unit] |
| 2 | Description=Freqtrade Daemon |
| 3 | After=network.target |
| 4 | |
| 5 | [Service] |
| 6 | # Set WorkingDirectory and ExecStart to your file paths accordingly |
| 7 | # NOTE: %h will be resolved to /home/<username> |
| 8 | WorkingDirectory=%h/freqtrade |
| 9 | ExecStart=/usr/bin/freqtrade trade --sd-notify |
| 10 | |
| 11 | Restart=always |
| 12 | #Restart=on-failure |
| 13 | |
| 14 | # Note that we use Type=notify here |
| 15 | Type=notify |
| 16 | |
| 17 | # Currently required if Type=notify |
| 18 | NotifyAccess=all |
| 19 | |
| 20 | StartLimitInterval=1min |
| 21 | StartLimitBurst=5 |
| 22 | |
| 23 | TimeoutStartSec=1min |
| 24 | |
| 25 | # Use here (process_throttle_secs * 2) or longer time interval |
| 26 | WatchdogSec=20 |
| 27 | |
| 28 | [Install] |
| 29 | WantedBy=default.target |
| 30 | |