Giter Club home page Giter Club logo

klipper-tg-bot's People

Contributors

ksergey avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar

klipper-tg-bot's Issues

confirmation

add confirmation for restart, restart_firmware, etc

Bot not starting on boot

I had problems with the bot not automatically starting after my Raspberry Pi boots.
I ran sudo loginctl enable-linger ${USER}, as told by the README, but the bot still was not starting automatically.

After some research, this resolved my issue: StackExchange

It seems that the multi-user.target is not executed by user systemd, as was confirmed by running systemctl --user list-units --type=target:

  UNIT             LOAD   ACTIVE SUB    DESCRIPTION
  basic.target     loaded active active Basic System
  bluetooth.target loaded active active Bluetooth
  default.target   loaded active active Main User Target
  paths.target     loaded active active Paths
  sockets.target   loaded active active Sockets
  timers.target    loaded active active Timers

LOAD   = Reflects whether the unit definition was properly loaded.
ACTIVE = The high-level unit activation state, i.e. generalization of SUB.
SUB    = The low-level unit activation state, values depend on unit type.
6 loaded units listed. Pass --all to see loaded but inactive units, too.
To show all installed unit files use 'systemctl list-unit-files'.

Workaround

I fixed the problem by following the solution in the provided StackExchange link.
I changed ~/.config/systemd/user/klipper-tg-bot.service's last line to WantedBy=default.target.
After the changes, I ran systemctl --user daemon-reload and systemctl --user enable klipper-tg-bot.service to finalize the changes.

Fix

To fix the problem altogether, you would only need to change this line to use default.target instead of multi-user.target:

WantedBy=multi-user.target

I am using a Raspberry Pi 4 using Raspbian 11.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.