diff --git a/README.md b/README.md index be2b7dd..12b931e 100644 --- a/README.md +++ b/README.md @@ -29,6 +29,7 @@ cp smo.serivce /etc/systemd/system/smo.service # edit ExecStart to your path for the server executable and change WorkingDirectory to the server directory chmod +x filepath to the server executable systemctl enable --now smo.service +# for TTY access i would recommand conspy but there is also reptyr, chvt ``` ## Run docker image diff --git a/smo.service b/smo.service index 01c292e..55ca9cc 100644 --- a/smo.service +++ b/smo.service @@ -14,6 +14,11 @@ WorkingDirectory=/home/user/SMOServer/ Restart=always # amount of time to wait before restarting the service RestartSec=5 +#TTY Input +StandardInput=tty-force +TTYVHangup=yes +TTYPath=/dev/tty20 +TTYReset=yes [Install] WantedBy=multi-user.target