Browse Source

Updated arborescence and UNIX permissions

Penta 5 years ago
parent
commit
c5f3ac58a3
2 changed files with 15 additions and 0 deletions
  1. 15 0
      extra/malbot.service
  2. 0 0
      myanimebot.py

+ 15 - 0
extra/malbot.service

@@ -0,0 +1,15 @@
+[Unit]
+Description=MyAnimeList Discord Bot
+After=network.target nss-lookup.target
+
+[Service]
+Type=simple
+ExecStart=/usr/local/bin/python3.7 /opt/malbot/myanimebot.py
+ExecStop=/bin/kill -15 $MAINPID
+Restart=on-failure
+
+User=malbot
+Group=malbot
+
+[Install]
+WantedBy=multi-user.target

+ 0 - 0
myanimebot.py