diff --git a/README.md b/README.md index d66f321ec..f2cf6e8bd 100644 --- a/README.md +++ b/README.md @@ -138,6 +138,14 @@ $ docker start freqtrade You do not need to rebuild the image for configuration changes, it will suffice to edit `config.json` and restart the container. +#### systemd service file +Copy `./freqtrade.service` to your systemd user directory (usually `~/.config/systemd/user`) +and update `WorkingDirectory` and `ExecStart` to match your setup. +After that you can start the daemon with: +```bash +$ systemctl --user start freqtrade +``` + ### Usage ``` usage: main.py [-h] [-c PATH] [-v] [--version] [--dynamic-whitelist [INT]] diff --git a/freqtrade.service b/freqtrade.service new file mode 100644 index 000000000..76f9b6016 --- /dev/null +++ b/freqtrade.service @@ -0,0 +1,14 @@ +[Unit] +Description=Freqtrade Daemon +After=network.target + +[Service] +# Set WorkingDirectory and ExecStart to your file paths accordingly +# NOTE: %h will be resolved to /home/ +WorkingDirectory=%h/freqtrade +ExecStart=/usr/bin/freqtrade --dynamic-whitelist 40 +Restart=on-failure + +[Install] +WantedBy=default.target +