update for pid usage

This commit is contained in:
deathbybandaid 2019-05-09 09:39:25 -04:00
parent 0fc056bfd9
commit 64ccc0f589
3 changed files with 7 additions and 1 deletions

View File

@ -35,6 +35,11 @@ git clone https://github.com/SpiceBot/SpiceBot.git /home/sopel/SpiceBot
cd /home/sopel/SpiceBot
git checkout dev
mkdir /run/sopel
echo $$ > /run/sopel/sopel-SpiceBotSERV.pid
chmod -R 777 /run/sopel/
cp /home/sopel/SpiceBot/System-Files/Config/SpiceBot.cfg /home/sopel/SpiceBot.cfg
cp /home/sopel/SpiceBot/System-Files/systemd/SpiceBot.service /lib/systemd/system/SpiceBot.service
systemctl enable SpiceBot.service

View File

@ -13,4 +13,5 @@ channels = #spicebot
prefix = \.|!
homedir = /home/sopel/.sopel/
db_filename = /home/sopel/.sopel/SpiceBot.db
pid_dir = /run/sopel
extra =

View File

@ -6,7 +6,7 @@ After=network.target
[Service]
Type=simple
User=sopel
PIDFile=/run/sopel/sopel-sopel.pid
PIDFile=/run/sopel/sopel-SpiceBotSERV.pid
ExecStart=/usr/local/bin/sopel -c /home/sopel/.sopel/SpiceBot.cfg
Restart=on-failure
RestartPreventExitStatus=2