|Newbie questions about Pliant
How can I shut down the HTTP server from the command line?
|Message posted by cb4 on 2003/01/19 07:21:38
|I know how to stop the HTTP server by going to the status page (or by using
CTRL+C in the shell), but what is the correct Pliant command line option
to accomplish this?
|Message posted by maybe Marcus on 2003/01/19 15:07:05
|Here is a solution from someone who is far from being a Linux expert: from
the Linux shell, I type 'top', which lists all current processes. Then I select
only the ones I have started (by typing 'u', for selecting user ID). Then, once
all processes started by that particular user have been listed, I type 'k' to
kill processes, then enter the number of the first PID listed.
Then hit 'Enter', and 'Enter' again. By this way all other 'pliant-debug*.exe' spawned from that PID will be instantly killed.
|Message posted by michel.de-mendez on 2003/01/19 17:07:55
|You have a similar but more EZ solution:
When ypou launch your sever do it by a background instruction,
i.e. & your command
Linux will return a PID_number please note it,
after the answer of your server(s) you can make an "enter" and get back the prompt.
you can at this tme close ypor session or your console.
To shutdown the server you just have to type "kill PID_number" and it's done.
|Message posted by hubert.tonneau on 2003/01/20 10:52:12
|Another way to handle it is write a .page like this:
if options="the shutdown password"
shutdown 120 "restart"
Then you can shutdown the server from your browser through selecting the right
URL, or shut it down from a (Pliant) script that will request the same URL.
|Message posted by maybe Boris Reitman on 2007/11/21 19:04:27
|What's the proper way to shutdown in ordder to avoid fullpliant zombie processes ?
They should be reapped.
|Message posted by maybe Hubert Tonneau on 2007/11/25 00:56:37
|I have not understood yet all the flags of the Linux 'clone' system call
used in /pliant/language/schedule/threads_engine.pli
Maybe external reviews could help.
|Message posted by maybe Boris Reitman on 2008/02/02 03:27:16
|I tried pressing Ctrl C on fullpliant on another box.
Leaves <defunct> processes too (i tried this on Amazon's VM).