mirror of
https://gitea.blesmrt.net/mikaela/shell-things.git
synced 2024-12-23 03:02:52 +01:00
systemd/limnoria: use venv & update Ergo's name
Thanks @EchedeyLR (ref: mikaela/shell-things#145)
This commit is contained in:
parent
84ff5eca82
commit
a4b7bdb51a
@ -2,18 +2,19 @@
|
|||||||
Description=Limnoria instance
|
Description=Limnoria instance
|
||||||
After=network-online.target
|
After=network-online.target
|
||||||
# if sharing server with IRC server, add
|
# if sharing server with IRC server, add
|
||||||
#oragono.service
|
#ergo.service
|
||||||
#Wants=oragono.service
|
#Wants=ergo.service
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
Type=simple
|
Type=simple
|
||||||
|
Environment=PATH=/home/BOTUSER/venv/bin:/home/BOTUSER/.local/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games
|
||||||
Environment="TZ=Europe/Helsinki"
|
Environment="TZ=Europe/Helsinki"
|
||||||
# if supybot.commands.allowShell is True and this is not set, may default to /
|
# if supybot.commands.allowShell is True and this is not set, may default to /
|
||||||
WorkingDirectory=/home/BOTUSER/
|
WorkingDirectory=/home/BOTUSER/
|
||||||
# supybot.pidFile
|
# supybot.pidFile
|
||||||
PIDFile=/home/BOTUSER/BOTNICKNAME/BOTNICKNAME.pid
|
PIDFile=/home/BOTUSER/BOTNICKNAME/BOTNICKNAME.pid
|
||||||
# python3 setup.py install --user
|
# mkdir venv && python3 -m venv venv && . venv/bin/activate && python3 -m pip install git+https://github.com/ProgVal/Limnoria.git@testing
|
||||||
ExecStart=/home/BOTUSER/.local/bin/supybot /home/BOTUSER/BOTNICKNAME/BOTNICKNAME.conf
|
ExecStart=/home/BOTUSER/venv/bin/limnoria /home/BOTUSER/BOTNICKNAME/BOTNICKNAME.conf
|
||||||
ExecReload=/bin/kill -HUP $MAINPID
|
ExecReload=/bin/kill -HUP $MAINPID
|
||||||
Restart=always
|
Restart=always
|
||||||
RestartSec=5s
|
RestartSec=5s
|
||||||
|
Loading…
Reference in New Issue
Block a user