On 2011-09-03 07:23 -0700, Phlip wrote:
> >> If I want to shut down the web.py server, what's the appropriate way? 
> >> Thanks...
> >
> > The dev server is stopped by pressing Ctrl+C. It handles the
> > KeyBoardInterrupt and stops the server.
> 
> Programatically?

The short answer is:

    sys.exit(0)

You can find the longer version which turns a bottle app into a linux
system service here:

    http://www.brankovukelic.com/post/2743988069/


-- 
Branko Vukelic
[email protected]
[email protected]

IDEA MACHINE
www.brankovukelic.com

Lead Developer
Herd Hound (tm) - Travel that doesn't bite
www.herdhound.com

Love coffee? You might love Loveffee, too.
loveffee.appspot.com

-- 
You received this message because you are subscribed to the Google Groups 
"web.py" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/webpy?hl=en.

Reply via email to