Newbie questions about Pliant
Precompiling and lauching all servers.
An instruction or a script which permit precompiling in one shoot all active servers will be usefull. An other to launch, in one shoot precompiled servers too. The need is both for win98 and linux |
Message posted by michel on 2002/01/24 09:32:36 |
please see abstract |
Message posted by pom on 2002/01/25 10:52:11 |
There are two possibilities:
1/ create a custom file for /pliant/install/precompile.pli as /custom/mycomputer.mydomain/pliant/install/precompile.pli with a custom precompile as:
custom precompile module "/pliant/language/compiler.pli" module "/pliant/language/context.pli" module "/pliant/language/os.pli"
if true # pliant_debugging_level=0
module "/pliant/admin/file.pli" module "/pliant/language/context.pli" module "/pliant/fullpliant/this_computer.pli"
if (constant this_computer:env:"kernel":"make":"CONFIG_ISDN"="y" or this_computer:env:"kernel":"make":"CONFIG_ISDN"="m") constant console "ISDN" eol module "/pliant/linux/network/isdn.pli" constant console "DNS" eol module "/pliant/protocol/dns/server.pli" # constant # console "SMTP" eol # module "/pliant/protocol/smtp/server.pli" # constant # console "POP3" eol # module "/pliant/protocol/pop3/server.pli" # constant # console "FTP" eol # module "/pliant/protocol/ftp/server.pli" constant console "HTTP" eol module "/pliant/protocol/http/server.pli" constant console "Default style" eol module "/pliant/protocol/http/style/default.style" constant console "File browser" eol module "/pliant/appli/file_browser.pli" constant console "Data browser" eol module "/pliant/appli/data_browser.pli" constant console "Type browser" eol module "/pliant/appli/type_browser.pli" constant console "Mail" eol module "/pliant/appli/mail.pli" constant console "Forum" eol module "/pliant/appli/forum.pli"
Then, run install and all the servers will be precompiled with it.
2/ create a specific servers.pli file (like the previous one, except there is no "custom precompile" line and run (if it is locate in install directory)
pliant debug 1 module /pliant/install/servers.pli backup /binary/servers.dump
then, to get the precompiled form when lauching the servers, you will start them with something like:
pliant debug1 restore /binary/servers.dump module /pliant/fullpliant/run.pli
|