|Newbie questions about Pliant
On restarting the server via the 'status' link
|Message posted by maybe Marcus on 2003/09/21 23:16:43
|Does this work only if the server is running on top of the fullpliant OS?
I don't run fullpliant on my servers; I tried to restart my server using that,
the server was shut down, but not restarted.
|Message posted by hubert.tonneau on 2003/09/22 08:00:41
|Yes, the FullPliant 'init' in /pliant/fullpliant/init.c
('init' is what Linux kernel is running when it finished booting) it looping
on running /pliant/fullpliant/run.pli
If you don't run FullPliant operating system, you may write a standard shell
service that would loop on
pliant module /pliant/fullpliant/run.pli
until the service is shut down,
and it would do the trick.
Having a sript that loops on running Pliant is always a good idea because it
will make the service automatically recover in cas of a Pliant crash.
|Message posted by maybe Marcus on 2003/09/22 12:18:13
|Since I am not very knowledgeable on shell scripting, I wonder if it would be
simpler to write a Pliant script to do the looping. If so, could you provide
some hints on how to do that?
|Message posted by hubert.tonneau on 2003/09/22 12:35:53
|> to write a Pliant script to do the looping
Not a good idea.
The FullPliant 'init' version is written in plain C, because it's not a good
idea to lauch the all Pliant machinery (consume more than 1 MB memory) to do
something as trivial.
There used to be a 'forever' instruction in Pliant, when I was running a standard
Linux distribution, but I think the shell option is the best one because the
Unix system 5 init crazy system expects shell scripts.
|Message posted by hubert.tonneau on 2003/09/24 19:57:30
|The 'forever' utility is still part of Pliant under Linux.
The source and documentation is in /pliant/linux/misc/forever.c
and the executable is /binary/forever.exe