mirror of https://github.com/Mai-with-u/MaiBot.git
修复systemctl强制停止maimbot的问题
parent
0586700467
commit
20f009d0bb
|
|
@ -132,6 +132,7 @@ After=network.target mongod.service
|
||||||
Type=simple
|
Type=simple
|
||||||
WorkingDirectory=<maimbot_directory>
|
WorkingDirectory=<maimbot_directory>
|
||||||
ExecStart=<venv_directory>/python3 bot.py
|
ExecStart=<venv_directory>/python3 bot.py
|
||||||
|
ExecStop=/bin/kill -2 $MAINPID
|
||||||
Restart=always
|
Restart=always
|
||||||
RestartSec=10s
|
RestartSec=10s
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue