mirror of
https://github.com/webmin/webmin.git
synced 2026-05-04 22:30:33 +01:00
Systemd units with @ in the name are legit, like virtualmin's clamd@scan
This commit is contained in:
24
apache/mpm_prefork.pl
Executable file
24
apache/mpm_prefork.pl
Executable file
@@ -0,0 +1,24 @@
|
||||
# mpm_prefork.pl
|
||||
# Defines editors for the pre-forking module in apache 2.4.
|
||||
# The actual functions for all of these are still in core.pl
|
||||
|
||||
sub mpm_prefork_directives
|
||||
{
|
||||
local $rv;
|
||||
$rv = [ [ 'CoreDumpDirectory', 0, 9, 'global', 2.0 ],
|
||||
[ 'BindAddress Listen Port', 1, 1, 'global', 2.0, 10 ],
|
||||
[ 'ListenBacklog', 0, 1, 'global', 2.0 ],
|
||||
[ 'LockFile', 0, 9, 'global', 2.0 ],
|
||||
[ 'MaxRequestsPerChild', 0, 0, 'global', 2.0 ],
|
||||
[ 'MinSpareServers', 0, 0, 'global', 2.0 ],
|
||||
[ 'MaxSpareServers', 0, 0, 'global', 2.0 ],
|
||||
[ 'PidFile', 0, 9, 'global', 2.0 ],
|
||||
[ 'ScoreBoardFile', 0, 9, 'global', 2.0 ],
|
||||
[ 'SendBufferSize', 0, 1, 'global', 2.0 ],
|
||||
[ 'StartServers', 0, 0, 'global', 2.0 ],
|
||||
[ 'Group', 0, 8, 'global', 2.0 ],
|
||||
[ 'User', 0, 8, 'global', 2.0, 10 ] ];
|
||||
return &make_directives($rv, $_[0], "mpm_prefork");
|
||||
}
|
||||
|
||||
|
||||
@@ -1946,7 +1946,7 @@ foreach my $l (split(/\r?\n/, $out)) {
|
||||
# Also find unit files for units that may be disabled at boot and not running,
|
||||
# and so don't show up in systemctl list-units
|
||||
opendir(UNITS, &get_systemd_root());
|
||||
push(@units, grep { !/\.wants$/ && !/^\./ && !/\@/ } readdir(UNITS));
|
||||
push(@units, grep { !/\.wants$/ && !/^\./ } readdir(UNITS));
|
||||
closedir(UNITS);
|
||||
|
||||
# Skip useless units
|
||||
|
||||
Reference in New Issue
Block a user