mirror of
https://github.com/webmin/webmin.git
synced 2026-03-20 16:50:24 +00:00
Fix to use init script config name
This commit is contained in:
@@ -435,7 +435,7 @@ return undef;
|
||||
sub stop_dovecot
|
||||
{
|
||||
&foreign_require("init");
|
||||
my ($ok, $err) = &init::stop_action('dovecot');
|
||||
my ($ok, $err) = &init::stop_action($config{'init_script'} || 'dovecot');
|
||||
return $ok ? undef : "<pre>$err</pre>";
|
||||
}
|
||||
|
||||
@@ -445,7 +445,7 @@ return $ok ? undef : "<pre>$err</pre>";
|
||||
sub start_dovecot
|
||||
{
|
||||
&foreign_require("init");
|
||||
my ($ok, $err) = &init::start_action('dovecot');
|
||||
my ($ok, $err) = &init::start_action($config{'init_script'} || 'dovecot');
|
||||
return $ok ? undef : "<pre>$err</pre>";
|
||||
}
|
||||
|
||||
@@ -461,7 +461,7 @@ if (!$pid) {
|
||||
elsif ($restart) {
|
||||
# Fully shut down and re-start
|
||||
&foreign_require("init");
|
||||
my ($ok, $err) = &init::restart_action('dovecot');
|
||||
my ($ok, $err) = &init::restart_action($config{'init_script'} || 'dovecot');
|
||||
return $ok ? undef : "<pre>$err</pre>";
|
||||
}
|
||||
else {
|
||||
|
||||
Reference in New Issue
Block a user