Shutdown a running module

37 views
Skip to first unread message

Nik

unread,
Nov 2, 2011, 12:13:32 PM11/2/11
to restas
Hi folks!

I couldn't find anything like RESTAS:STOP or RESTAS:SHUTDOWN
to shutdown a running module gracefully.

It would be nice to have such a function out of the box!

Regards
Nik

Andrey Moskvitin

unread,
Nov 2, 2011, 3:45:45 PM11/2/11
to res...@googlegroups.com
Hi Nik,

hunchentoot:stop does not work well before, so I did not add this feature
in RESTAS. But in new version (1.2.0) Hunchentoot hunchentoot:stop is
implemented as must.

So now I was able to implement the restas:stop-all. While there is not very
neat code but it works fine in most cases.

Without update RESTAS from git you can try using such code:

(defun restas-stop-all (&key soft)
(setf restas::*vhosts* nil)
(iter (for acceptor in restas::*acceptors*)
(hunchentoot:stop acceptor :soft soft))
(setf restas::*acceptors* nil))


2011/11/2 Nik <nitr...@googlemail.com>:

Nik

unread,
Nov 3, 2011, 10:30:49 AM11/3/11
to restas
Great!

On 2 Nov., 20:45, Andrey Moskvitin <archi...@gmail.com> wrote:
> Hi Nik,
>
> hunchentoot:stop does not work well before, so I did not add this feature
> in RESTAS. But in new version (1.2.0) Hunchentoot hunchentoot:stop is
> implemented as must.
>
> So now I was able to implement the restas:stop-all. While there is not very
> neat code but it works fine in most cases.
>
> Without update RESTAS from git you can try using such code:
>
> (defun restas-stop-all (&key soft)
>   (setf restas::*vhosts* nil)
>   (iter (for acceptor in restas::*acceptors*)
>         (hunchentoot:stop acceptor :soft soft))
>   (setf restas::*acceptors* nil))
>
> 2011/11/2 Nik <nitral...@googlemail.com>:

softside

unread,
Nov 3, 2011, 1:28:02 PM11/3/11
to restas
I saw you push this in git 1 day ago,that`s cool.
there is a question about quicklisp:I install restas using ql,,,when
you push new feature to restas ,how can I get the uodate ???
Reply all
Reply to author
Forward
0 new messages