mirror of
https://github.com/webmin/webmin.git
synced 2026-02-03 06:03:28 +00:00
Add timeoutstopsec as well
This commit is contained in:
@@ -130,13 +130,14 @@ elsif ($init_mode eq "systemd") {
|
||||
undef,
|
||||
{ 'pidfile' => "$var_directory/miniserv.pid",
|
||||
'opts' => {
|
||||
'env' => '"PERLLIB=' . $root_directory . '"',
|
||||
'stop' => "$kill \$MAINPID",
|
||||
'reload' => "$kill -HUP \$MAINPID",
|
||||
'type' => 'forking',
|
||||
'restart' => 'always',
|
||||
'restartsec' => '2s',
|
||||
'timeout' => '15s',
|
||||
'env' => '"PERLLIB=' . $root_directory . '"',
|
||||
'stop' => "$kill \$MAINPID",
|
||||
'reload' => "$kill -HUP \$MAINPID",
|
||||
'type' => 'forking',
|
||||
'restart' => 'always',
|
||||
'restartsec' => '2s',
|
||||
'timeout' => '15s',
|
||||
'timeoutstopsec' => '300s',
|
||||
}},
|
||||
);
|
||||
}
|
||||
|
||||
@@ -2380,6 +2380,7 @@ if (ref($opts)) {
|
||||
&print_tempfile(CFILE, "Restart=$opts->{'restart'}\n") if ($opts->{'restart'});
|
||||
&print_tempfile(CFILE, "RestartSec=$opts->{'restartsec'}\n") if ($opts->{'restartsec'});
|
||||
&print_tempfile(CFILE, "TimeoutSec=$opts->{'timeout'}\n") if ($opts->{'timeout'});
|
||||
&print_tempfile(CFILE, "TimeoutStopSec=$opts->{'timeoutstopsec'}\n") if ($opts->{'timeoutstopsec'});
|
||||
&print_tempfile(CFILE, "StandardOutput=file:$opts->{'logstd'}\n") if ($opts->{'logstd'});
|
||||
&print_tempfile(CFILE, "StandardError=file:$opts->{'logerr'}\n") if ($opts->{'logerr'});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user