mirror of
https://github.com/webmin/webmin.git
synced 2025-07-21 23:40:34 +00:00
16 lines
296 B
Perl
Executable File
16 lines
296 B
Perl
Executable File
#!/usr/local/bin/perl
|
|
# stop.cgi
|
|
# Stop the running apache server
|
|
|
|
require './apache-lib.pl';
|
|
&ReadParse();
|
|
&error_setup($text{'stop_err'});
|
|
|
|
$access{'stop'} || &error($text{'stop_ecannot'});
|
|
$err = &stop_apache();
|
|
&error($err) if ($err);
|
|
sleep(1);
|
|
&webmin_log("stop");
|
|
&redirect($in{'redir'});
|
|
|