Re: prolog server on linux
Jan Wielemaker <[email protected]>
| Newsgroups | gmane.comp.ai.prolog.swi |
|---|---|
| Message-ID | <[email protected]> |
Dear Gabor, Have a look at this section: http://www.swi-prolog.org/pldoc/man?section=httpunixdaemon You can find the answers to your questions in the code of this library. Most likely you just want to use the library :-) Cheers --- Jan On 12/19/2013 03:06 PM, Gabor Monostori wrote: > Hi there, > > Can anybody help me with the following problem? > > We have a linux server, and we want to run our prolog server as a service. > We would like to use upstart, the script now looks like this in > /etc/init/myserver.conf: > > script > exec sudo -u user "/home/user/myserver" > end script > > and in myserver(prolog program saved by 'qsave_program') we start the http > server automaticaly with : > > http_server(http_dispatch, [port(8000)]). > > But when typing > > sudo service myserver start > > I can see that the myserver started, but immediately receives a halt, and > exits according to the log '/var/log/upstart/myserver.log'. > > Any idea what is wrong with the above? > > regards, > Gabor > -------------- next part -------------- > HTML attachment scrubbed and removed > _______________________________________________ > SWI-Prolog mailing list > [email protected] > https://lists.iai.uni-bonn.de/mailman/listinfo.cgi/swi-prolog >