systemd: "rewrite" supybot -> limnoria, move znc, rmdir irc/

This commit is contained in:
Aminda Suomalainen 2021-05-16 18:00:31 +03:00
parent 306270c441
commit c1768cae67
Signed by: Mikaela
GPG Key ID: 99392F62BAE30723
3 changed files with 22 additions and 14 deletions

View File

@ -1,14 +0,0 @@
[Unit]
Description=Supybot
After=network-online.target
[Service]
Type=forking
PIDFile=/home/bot/botname/botname.pid
ExecStart=/usr/local/bin/supybot /home/bot/botname/botname.conf --daemon
ExecReload=/bin/kill -HUP $MAINPID
Restart=always
User=bot
[Install]
WantedBy=multi-user.target

View File

@ -0,0 +1,22 @@
[Unit]
Description=Limnoria instance
After=network-online.target
# if sharing server with IRC server, add
#oragono.service
#Wants=oragono.service
[Service]
Type=simple
# 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
# python3 setup.py install --user
ExecStart=/home/BOTUSER/.local/bin/supybot /home/BOTUSER/BOTNICKNAME/BOTNICKNAME.conf
ExecReload=/bin/kill -HUP $MAINPID
Restart=always
User=BOTUSER
[Install]
WantedBy=multi-user.target