Handle hostnames with upper-case letters
[webmin.git] / dovecot / bootup.cgi
1 #!/usr/local/bin/perl
2 # Enable or disable dovecot at boot time
3
4 require './dovecot-lib.pl';
5 &ReadParse();
6 &foreign_require("init", "init-lib.pl");
7 if ($in{'boot'}) {
8         &init::enable_at_boot($config{'init_script'}, "Dovecot IMAP server",
9                               $config{'dovecot'},
10                               "kill `cat $config{'pid_file'}`");
11         }
12 else {
13         &init::disable_at_boot($config{'init_script'});
14         }
15 &webmin_log($in{'boot'} ? "bootup" : "bootdown");
16 &redirect("");
17