mirror of
https://github.com/webmin/webmin.git
synced 2025-07-23 00:30:33 +00:00
18 lines
422 B
Perl
Executable File
18 lines
422 B
Perl
Executable File
#!/usr/local/bin/perl
|
|
# Enable or disable dovecot at boot time
|
|
|
|
require './dovecot-lib.pl';
|
|
&ReadParse();
|
|
&foreign_require("init");
|
|
if ($in{'boot'}) {
|
|
&init::enable_at_boot($config{'init_script'}, "Dovecot IMAP server",
|
|
$config{'dovecot'},
|
|
"kill `cat $config{'pid_file'}`");
|
|
}
|
|
else {
|
|
&init::disable_at_boot($config{'init_script'});
|
|
}
|
|
&webmin_log($in{'boot'} ? "bootup" : "bootdown");
|
|
&redirect("");
|
|
|