made the ingame autism bots into systemctl services finally

This commit is contained in:
jenz 2022-04-02 12:57:54 +02:00
parent 17d6c9c914
commit 64d7611576
2 changed files with 21 additions and 0 deletions

View File

@ -0,0 +1,17 @@
[Unit]
Description=autism_runner%i
[Service]
User=autismbot%i
Group=autismbot%i
WorkingDirectory=/home/autismbot%i/ze_runner
Environment=PATH=/home/autismbot%i/ze_runner/venv/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games
ExecStart=/home/autismbot%i/ze_runner/run_autismbot.sh
Restart=on-failure
RestartSec=10
#Restart=always
[Install]
WantedBy=default.target

View File

@ -0,0 +1,4 @@
#!/bin/bash
cd "$(dirname "$0")"
source venv/bin/activate
python3 -u ingamefollowct.py