Last active
September 16, 2025 12:41
-
-
Save TehPeGaSuS/037e1873b1f76220a47210be7a3c6abf to your computer and use it in GitHub Desktop.
Limnoria tricks and tips (you need venv to be activated on your user)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [Unit] | |
| Description=Limnoria | |
| [Service] | |
| WorkingDirectory=/home/bot/botname | |
| ExecStart=/path/to/venv/bin/limnoria /path/to/bot-folder/botname.conf | |
| Restart=on-failure | |
| [Install] | |
| WantedBy=default.target |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Systemd User Service
Using a systemd service is the recommended method to run Limnoira.
You must also use systemd as your init system (this is usually the case on Linux, especially newer Ubuntu/Debian systems).
To enable systemd services as normal user (tested on Ubuntu 18.04+)
Run the following commands as the shell user where you'll be running your bot:
loginctl enable-lingermkdir -p ~/.config/systemd/user/to create the user systemd folder~/.config/systemd/user/and name it <BOTNAME>.servicesystemctl --user daemon-reloadto make systemd aware of changed files,systemctl --user enable <BOTNAME>.serviceto make the bot start on boot, andsystemctl --user start <BOTNAME>.serviceto start the bot.Some Useful Commands
systemctl --user enable <BOTNAME>.servicesystemctl --user disable <BOTNAME>.servicesystemctl --user start <BOTNAME>.servicesystemctl --user stop <BOTNAME>.servicesystemctl --user reload <BOTNAME>.servicejournalctl --user -fu <BOTNAME>.service