With regard to your script, you might want to look at the directory spec at the
>
cd openarena...line. I mean,
cd where exactly, and from where?
Relative path most likely won't work here, because "cd openarena" is relative to the
current directory of the
init process, which could be anywhere. The proper line should look like
cd /usr/local/openarena, i.e. the full path of the folder where you have the game installed.
As for me, I wouldn't bother with an init-script, I'd just add the launch command to
/etc/rc.local (Debian/Ubuntu) or similar (your distro's "misc startup things" file), something like the following:
sudo -H -u user_to_run_OA_under bash -c "cd /usr/local/openarena && ./oa_ded.i386 +map aggressor" >/dev/null 2>&1 &Note the user part, you should perhaps create a separate user to run OA under, as that's much better from the security point of view, than running the game server as
root.