Skip to content

Instantly share code, notes, and snippets.

@rob-murray
Created May 31, 2018 20:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rob-murray/1030d29e704135c24e4c5d0ba2c00916 to your computer and use it in GitHub Desktop.
Save rob-murray/1030d29e704135c24e4c5d0ba2c00916 to your computer and use it in GitHub Desktop.
Run BitBotFactory MikaLendingBot as systemd service on Raspberry Pi
[Unit]
Description=LendingBot service
After=network.target
[Service]
Type=simple
ExecStart=/usr/bin/python <CODE_DIR>/lendingbot.py
WorkingDirectory=<CODE_DIR>
RestartSec=10
Restart=on-failure
User=pi
Group=pi
[Install]
WantedBy=multi-user.target

Run

https://github.com/BitBotFactory/MikaLendingBot

Ideally will run it on docker but haven't figured out switching it to arm version images so just run it on the host for now.

  1. clone repo
  2. install deps
  3. Edit config file
  4. create /lib/systemd/system/lendingbot.service => copy from below but edit <CODE_DIR> dir
  5. $ systemctl daemon-reload
  6. $ systemctl enable lendingbot.service
  7. $ systemctl start lendingbot.service
  8. $ systemctl status lendingbot.service
  9. Show logs $ journalctl -f -a -u lendingbot.service
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment