Project

General

Profile

How can I stop the server?

Added by zoolop over 3 years ago

I am currently writing a module for lighttpd and wanted to know the c function that is used to shutdown the server. I see there is a function called server_graceful_state and it uses a variable called graceful_shutdown. How would I stop the server?


Replies (3)

RE: How can I stop the server? - Added by gstrauss over 3 years ago

I am currently writing a module for lighttpd and wanted to know the c function that is used to shutdown the server.

The code to manage the server is in server.c and is intentionally not exposed to modules.

It is generally considered poor practice for libraries to manipulate signals handling, and lighttpd modules are libraries conforming to the lighttpd modules API.
However, directly linked on the front page of the wiki is InstallFromSource, which you might want to read.

RE: How can I stop the server? - Added by gstrauss over 3 years ago

There are (4) lighttpd forums on this site: Support, Development, Misc, and Feedback.

I am currently writing a module for lighttpd and wanted to know the c function that is used to shutdown the server.

Clearly, that statement is for development and not for support.

Related, if you are working on a project for school, please disclose the details. You might help yourself avoid wasting time on bad ideas.

RE: How can I stop the server? - Added by zoolop over 3 years ago

I am sorry. I figured it out through
Thank you

    (1-3/3)