version 1.44.2.1, 2019/07/07 20:49:02
|
version 1.46, 2019/06/09 02:35:41
|
Line 93 sub stop_daemon {
|
Line 93 sub stop_daemon {
|
print(", killed off extraneous processes"); |
print(", killed off extraneous processes"); |
} |
} |
unlink($pidfile); |
unlink($pidfile); |
|
if ($killallname eq 'loncnew') { |
|
&clean_nossl_loncpids(); |
|
} |
print("\n"); |
print("\n"); |
} |
} |
|
|
Line 107 sub clean_sockets {
|
Line 110 sub clean_sockets {
|
} |
} |
} |
} |
|
|
|
sub clean_nossl_loncpids { |
|
my $childpiddir = '/home/httpd/perl/logs/loncpids'; |
|
my $nossldir = '/home/httpd/sockets/nosslverify'; |
|
foreach my $dir ($childpiddir,$nossldir) { |
|
if (-d $dir) { |
|
if (opendir(my $dh,$dir)) { |
|
while (my $fname=readdir($dh)) { |
|
next if ($fname =~ /^\./); |
|
unlink("$dir/$fname"); |
|
} |
|
closedir($dh); |
|
} |
|
} |
|
} |
|
} |
|
|
if (($command eq "restart") || ($command eq 'stop') || |
if (($command eq "restart") || ($command eq 'stop') || |
($command eq 'start') || ($command eq "status")) { |
($command eq 'start') || ($command eq "status")) { |
my $iptables = &LONCAPA::Firewall::get_pathto_iptables(); |
my $iptables = &LONCAPA::Firewall::get_pathto_iptables(); |
Line 132 if (($command eq "restart") || ($command
|
Line 151 if (($command eq "restart") || ($command
|
} |
} |
$firewall_result = |
$firewall_result = |
&LONCAPA::Firewall::firewall_open_port($iptables,\@fw_chains, |
&LONCAPA::Firewall::firewall_open_port($iptables,\@fw_chains, |
$lond_port, \%iphost,[$lond_port], |
$lond_port,\%iphost,[$lond_port], |
$firewalld); |
$firewalld); |
if (($firewall_result eq 'ok') || ($firewall_result eq 'inactive firewall')) { |
if (($firewall_result eq 'ok') || ($firewall_result eq 'inactive firewall')) { |
if ($firewall_result eq 'inactive firewall') { |
if ($firewall_result eq 'inactive firewall') { |