Hi,
I am in the process of deploying an HTTP server written in SWI-Prolog. To do this, I am using SSH to access the Linux machine which will run the server. I am able to start SWI-Prolog on this machine and start my HTTP server, and everything seems to be working fine. However, as soon as I close the SSH session, all swipl processes are also closed.
I have so far tried the "classical" solution of disowning the swipl process (as described by the accepted answer in this thread
http://stackoverflow.com/questions/625409/how-do-i-put-an-already-running-process-under-nohup). However, the server is not accessible when the swipl process is running in the background. I believe it is because the main swipl process is actually spawning a bunch of child processes to run the server, but these child processes are not active when the swipl process runs in the background (maybe I'm wrong).
Does anyone have any suggestions as to how I can make my server continue to run even after closing the SSH session? I guess even
swi-prolog.org must have ran into the same issue at some point.
Cheers,
Vlad