Browse Source

Using SIGINT instead of SIGTERM for systemd

Penta 5 năm trước cách đây
mục cha
commit
9d48d4ac26
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      extra/myanimebot.service

+ 1 - 1
extra/myanimebot.service

@@ -6,7 +6,7 @@ After=network.target nss-lookup.target
 Type=simple
 WorkingDirectory=/opt/MyAnimeBot/
 ExecStart=/usr/local/bin/python3.7 /opt/MyAnimeBot/myanimebot.py
-ExecStop=/bin/kill -15 $MAINPID
+ExecStop=/bin/kill -2 $MAINPID
 Restart=on-failure
 
 User=mab