Commit 73088757 authored by Yadd's avatar Yadd
Browse files

Add reload target (closes: #1060)

parent 44a99ce3
...@@ -26,6 +26,7 @@ server { ...@@ -26,6 +26,7 @@ server {
deny all; deny all;
include /etc/nginx/fastcgi_params; include /etc/nginx/fastcgi_params;
fastcgi_pass unix:__FASTCGISOCKDIR__/llng-fastcgi.sock; fastcgi_pass unix:__FASTCGISOCKDIR__/llng-fastcgi.sock;
fastcgi_param LLTYPE reload;
} }
# Client requests # Client requests
......
...@@ -41,6 +41,10 @@ my %builder = ( ...@@ -41,6 +41,10 @@ my %builder = (
require Lemonldap::NG::Handler::Nginx; require Lemonldap::NG::Handler::Nginx;
return Lemonldap::NG::Handler::Nginx->run( {} ); return Lemonldap::NG::Handler::Nginx->run( {} );
}, },
reload => sub {
require Lemonldap::NG::Handler::Nginx;
return Lemonldap::NG::Handler::Nginx->reload();
},
status => sub { status => sub {
require Lemonldap::NG::Handler::Nginx; require Lemonldap::NG::Handler::Nginx;
return Lemonldap::NG::Handler::Nginx->status(); return Lemonldap::NG::Handler::Nginx->status();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment