2021-05-16 17:00:31 +02:00
|
|
|
[Unit]
|
|
|
|
Description=Limnoria instance
|
|
|
|
After=network-online.target
|
|
|
|
# if sharing server with IRC server, add
|
2023-09-29 09:39:44 +02:00
|
|
|
#ergo.service
|
|
|
|
#Wants=ergo.service
|
2021-05-16 17:00:31 +02:00
|
|
|
|
|
|
|
[Service]
|
|
|
|
Type=simple
|
2023-09-29 09:39:44 +02:00
|
|
|
Environment=PATH=/home/BOTUSER/venv/bin:/home/BOTUSER/.local/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games
|
2021-06-02 16:50:30 +02:00
|
|
|
Environment="TZ=Europe/Helsinki"
|
2021-05-16 17:00:31 +02:00
|
|
|
# if supybot.commands.allowShell is True and this is not set, may default to /
|
|
|
|
WorkingDirectory=/home/BOTUSER/
|
|
|
|
# supybot.pidFile
|
|
|
|
PIDFile=/home/BOTUSER/BOTNICKNAME/BOTNICKNAME.pid
|
2023-09-29 09:39:44 +02:00
|
|
|
# mkdir venv && python3 -m venv venv && . venv/bin/activate && python3 -m pip install git+https://github.com/ProgVal/Limnoria.git@testing
|
|
|
|
ExecStart=/home/BOTUSER/venv/bin/limnoria /home/BOTUSER/BOTNICKNAME/BOTNICKNAME.conf
|
2021-05-16 17:00:31 +02:00
|
|
|
ExecReload=/bin/kill -HUP $MAINPID
|
|
|
|
Restart=always
|
2021-06-02 16:50:30 +02:00
|
|
|
RestartSec=5s
|
2021-05-16 17:00:31 +02:00
|
|
|
User=BOTUSER
|
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|