mirror of
https://github.com/webmin/webmin.git
synced 2025-07-20 16:48:46 +00:00
19 lines
380 B
Perl
Executable File
19 lines
380 B
Perl
Executable File
#!/usr/local/bin/perl
|
|
# stop.cgi
|
|
# Stop the print scheduler
|
|
|
|
require './lpadmin-lib.pl';
|
|
&ReadParse();
|
|
$access{'stop'} == 1 || &error($text{'stop_ecannot'});
|
|
&error_setup($text{'stop_err'});
|
|
if ($config{'stop_cmd'}) {
|
|
$out = &backquote_logged("($config{'stop_cmd'}) 2>&1");
|
|
&error($out) if ($?);
|
|
}
|
|
else {
|
|
&stop_sched(&sched_running());
|
|
}
|
|
&webmin_log("stop");
|
|
&redirect("");
|
|
|