X-Git-Url: https://us-delaporte.pagekite.me/gitweb/dotfiles.git/blobdiff_plain/72c4e8b45b3bbe07bf0acda5b48d63ce3f68df5c..5043eaba8b753e844cd1a6d98196c3945dfe3f07:/invoke/luanti-remote/tasks.py diff --git a/invoke/luanti-remote/tasks.py b/invoke/luanti-remote/tasks.py index e6f5915..75b7e39 100644 --- a/invoke/luanti-remote/tasks.py +++ b/invoke/luanti-remote/tasks.py @@ -9,7 +9,7 @@ LOCAL_HOME=os.environ.get('HOME') TODAY = dt.now().strftime('%Y.%m.%d') WORLD='world' -SERVE=f'{HOME}/luanti/bin/luantiserver --gameid minetest --worldname world' +SERVE=f'screen -d -m {HOME}/luanti/bin/luantiserver --gameid minetest --worldname world' SSH=f'ssh {USER}@{IP}' SCP=f'scp {USER}@{IP}' @@ -65,4 +65,6 @@ def verify_backup(c): @task(verify_backup) def serve(c): print(f"Attempting to connect to {IP}") - c.run(f'ssh {USER}@{IP} -C {SERVE}') + result = c.run(f'ssh {USER}@{IP} -C {SERVE}') + print(f'Server should now be running in a remote screen session.') + print(result)