http server in ackground

Josef Fydl <[email protected]> Wed, 09 Apr 2014 15:59:56 -0400
Newsgroups gmane.comp.ai.prolog.swi
Message-ID <[email protected]>
I have a http server, which I want to run forever in iCloud,
unfortunately terminal is kicked off after period of no activity,

I tried   swipl -s myServer.pl -g start  -q &

on my mac and can not reach it from browser, also port shows in issuing  netstat -vatn

Same on the linux node. Can you please tell me what I do wrong?
swipl -s myServer.pl -g start  -q  works OK in both cases?