made the ingame autism bots into systemctl services finally
This commit is contained in:
parent
17d6c9c914
commit
64d7611576
17
AutismBotIngame/autismrunner@.service
Normal file
17
AutismBotIngame/autismrunner@.service
Normal 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
|
||||
|
4
AutismBotIngame/python/run_autismbot.sh
Normal file
4
AutismBotIngame/python/run_autismbot.sh
Normal file
@ -0,0 +1,4 @@
|
||||
#!/bin/bash
|
||||
cd "$(dirname "$0")"
|
||||
source venv/bin/activate
|
||||
python3 -u ingamefollowct.py
|
Loading…
Reference in New Issue
Block a user