mirror of
https://github.com/webmin/webmin.git
synced 2025-07-20 16:48:46 +00:00
20 lines
383 B
Perl
Executable File
20 lines
383 B
Perl
Executable File
#!/usr/local/bin/perl
|
|
# start.cgi
|
|
# Start the print scheduler
|
|
|
|
require './lpadmin-lib.pl';
|
|
&ReadParse();
|
|
$access{'stop'} == 1 || &error($text{'start_ecannot'});
|
|
&error_setup($text{'start_err'});
|
|
if ($config{'start_cmd'}) {
|
|
$out = &backquote_logged("($config{'start_cmd'}) 2>&1");
|
|
&error($out) if ($?);
|
|
sleep(3);
|
|
}
|
|
else {
|
|
&start_sched();
|
|
}
|
|
&webmin_log("start");
|
|
&redirect("");
|
|
|