Last active
November 13, 2024 22:59
-
-
Save TehPeGaSuS/037e1873b1f76220a47210be7a3c6abf to your computer and use it in GitHub Desktop.
Limnoria tricks and tips
This file contains 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=/usr/local/bin/supybot botname.conf | |
Restart=on-failure | |
[Install] | |
WantedBy=default.target |
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).
To enable systemd services as normal user (tested on Ubuntu 18.04+)
loginctl enable-linger
systemctl --user enable systemd-tmpfiles-clean.timer && systemctl --user disable systemd-tmpfiles-clean.timer
~/.config/systemd/user/
folder)~/.config/systemd/user/
and name it <BOTNAME>.servicesystemctl --user daemon-reload
to make systemd aware of changed files,systemctl --user enable <BOTNAME>.service
to make the bot start on boot etc. andsystemctl --user start <BOTNAME>.service
to start the bot.Some Useful Commands
systemctl --user enable <BOTNAME>.service
systemctl --user disable <BOTNAME>.service
systemctl --user start <BOTNAME>.service
systemctl --user stop <BOTNAME>.service
systemctl --user reload <BOTNAME>.service
journalctl --user -fu <BOTNAME>.service