Fedora Linux -- how to add a user daemon (server) process
Posted on 2014-04-16
I have a server "binary_server.exe" that does simple math over network for demonstrating the idea of TCP sockets. It works fine when I start it, as a regular user, like this
, on the command like. And I saw it running in the background with ps -ax | grep binary*
. But the process stayed there only for a couple of hours, and then gone. Don't know who killed it. My first question is:
How can I add this executable (daemon) as a startup process? So I don't have to start it manually.
Another related questions is: Since the server uses network port 5001 (for example), are there anything needs to be configured in the system, other than just lifting off the firewall (which I did, for this educational server)? Or do I have to start it as the root user? And I suspect that the OS somehow kills it when it's not active for sometime.