updated services again and exiting behaviour
This commit is contained in:
parent
97daa439a3
commit
227c92efdc
@ -1,3 +1,4 @@
|
|||||||
|
#!/home/autismbot1/ze_runner/venv/bin/python3
|
||||||
import os
|
import os
|
||||||
import sys
|
import sys
|
||||||
import subprocess
|
import subprocess
|
||||||
@ -184,13 +185,10 @@ if __name__ == '__main__':
|
|||||||
elif "connect to" in data:
|
elif "connect to" in data:
|
||||||
if connection_issue_counter == 20:
|
if connection_issue_counter == 20:
|
||||||
kill_owned_process("pidof hl2_linux")
|
kill_owned_process("pidof hl2_linux")
|
||||||
launch_css_process()
|
print('exiting')
|
||||||
connected_to_other = False
|
sys.exit(1)
|
||||||
elif connection_issue_counter == 50:
|
|
||||||
restart_sdl_and_steam()
|
|
||||||
launch_css_process()
|
|
||||||
connected_to_other = False
|
|
||||||
connection_issue_counter = -10
|
|
||||||
if not connected_to_other or "connect to ze" == data:
|
if not connected_to_other or "connect to ze" == data:
|
||||||
print('data: ', data)
|
print('data: ', data)
|
||||||
connection_issue_counter += 1
|
connection_issue_counter += 1
|
||||||
@ -222,6 +220,7 @@ if __name__ == '__main__':
|
|||||||
#X2GO_NXAGENT_DEFAULT_OPTIONS="-options nx/nx,sleep=0" /etc/x2go/x2goagent.options
|
#X2GO_NXAGENT_DEFAULT_OPTIONS="-options nx/nx,sleep=0" /etc/x2go/x2goagent.options
|
||||||
#keeps session as R instead of S which is needed for interaction with graphical components such as steam and CS:S
|
#keeps session as R instead of S which is needed for interaction with graphical components such as steam and CS:S
|
||||||
|
|
||||||
|
|
||||||
"""
|
"""
|
||||||
.bashrc requires:
|
.bashrc requires:
|
||||||
if [[ $DISPLAY ]]; then
|
if [[ $DISPLAY ]]; then
|
||||||
|
@ -1,4 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
cd "$(dirname "$0")"
|
|
||||||
source venv/bin/activate
|
|
||||||
python3 -u ingamefollowct.py
|
|
Loading…
Reference in New Issue
Block a user