I have a TCP server written in C# which I will run on my server. I've tested the application running on the server and client side and it all works great! I'm using mono on my Linux server to run the Server.exe application. I've been experimenting with both Upstart and Shell scripts to get the Server.exe application to run in the background at start up. None of these have worked.
Here is the Shell Script I tried:
#!/bin/sh/usr/bin/mono Server.exe "$@" &
I then edited the rc.local file found in the /etc directory and added this line:
/usr/local/bin/ClipCloud/start.sh &
Am I missing something here as I can't seem to get it working. It seems to start and then terminate the process straight away. When I start the Server.exe application from terminal by just typing
mono /usr/local/bin/ClipCloud/Server.exe
it works fine and will continue to run until I close the terminal window or type "exit"
I will be happy to share anything I can to help.