Files
webmin/nginx/stop.cgi
Ilia Ross c9e577e220
Some checks failed
webmin.dev: webmin/webmin / build (push) Has been cancelled
Update a new Nginx module to look and feel like Apache
2026-04-26 00:05:16 +02:00

16 lines
349 B
Perl

#!/usr/local/bin/perl
# Stop the webserver
use strict;
use warnings;
require './nginx-lib.pl';
our (%text, %in, %access);
&ReadParse();
&error_setup($text{'stop_err'});
$access{'stop'} || &error($text{'stop_ecannot'});
my $err = &stop_nginx();
$err && &error("<tt>".&html_escape($err)."</tt>");
&webmin_log("stop");
&redirect($in{'redir'} || "");