projects
/
webmin.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Handle hostnames with upper-case letters
[webmin.git]
/
lpadmin
/
restart.cgi
1
#!/usr/local/bin/perl
2
# restart.cgi
3
# Stop and start the print scheduler
4
5
require './lpadmin-lib.pl';
6
&ReadParse();
7
$access{'stop'} == 2 || &error($text{'restart_ecannot'});
8
&error_setup($text{'restart_err'});
9
&stop_sched(&sched_running());
10
sleep(2);
11
&start_sched();
12
&webmin_log("restart");
13
&redirect("");
14