So you're going to leave a process running that "reacts" to Internet events. Is it listening to a specific port, and does it require a user ID before responding? (I.e., if not done right, your system will soon belong to the "script kids.")
Anyhow, there are, as I noted above, many ways to do this. The one I suggested was intended for running a background process for a system, not a Web server.
If you're setting up a Web game server, Goggle is your friend. Try this one
or, if you read German, this one