Skip to content

Instantly share code, notes, and snippets.

View MihaiChirculete's full-sized avatar

MihaiChirculete MihaiChirculete

  • Bucharest, Romania
View GitHub Profile

Run freqtrade on Raspberry Pi

Seupt your Dietpi. Static IP. SSH.

Freqtrade v2019.9 with Python 3.7 and setup.sh

Python 3.7:

 sudo apt-get install build-essential tk-dev libncurses5-dev libncursesw5-dev libreadline6-dev libdb5.3-dev libgdbm-dev libsqlite3-dev libssl-dev libbz2-dev libexpat1-dev liblzma-dev zlib1g-dev libffi-dev -y
@MihaiChirculete
MihaiChirculete / python_systemd.md
Created February 14, 2021 10:47 — forked from ilyasst/python_systemd.md
Run a python script forever using systemd

Run a python script forever

In this section, we are going to show how to run a python script as a systemd service, allowing you to boot it at the start of a Linux machine and to maintain it alive.

Test method: Telegram Bot

We are going to use a very basic Telegram bot in order to test that our script will:

  1. Automatically start when the machine boot
  2. Automatically restart when it crashes/exits for whichever reason