mirror of
https://github.com/SpiceBot/SpiceBot.git
synced 2026-11-10 21:50:59 -05:00
update for pid usage
This commit is contained in:
parent
0fc056bfd9
commit
64ccc0f589
@ -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
|
||||
|
||||
@ -13,4 +13,5 @@ channels = #spicebot
|
||||
prefix = \.|!
|
||||
homedir = /home/sopel/.sopel/
|
||||
db_filename = /home/sopel/.sopel/SpiceBot.db
|
||||
pid_dir = /run/sopel
|
||||
extra =
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user