Ok, I really want to have a server running 24/7 on my machine, But it will not start. (its ubuntu server 23.04, running headless and I use SSH to log in)
Here is my script (named Start.sh):
screen -AmdS paintball ./paintball2 +set dedicated 1 +exec CVPaintball.cfg +set port 11111 +map arenaball
Since this didn't work, I tried just putting this in terminal (yes i did it in the directory with paintball2 file):
./paintball2 +set dedicated 1 +exec CVPaintball.cfg +set port 11111 +map arenaball
but it just fails saying cannot execute, Required file not found.
I have no idea what file it is referring to.
Its going to be run on boot with this script:
#!/bin/sh
runuser paintball -l -c "cd /home/paintball/paintball2/ && ./Start.sh"
Thanks for helping!