| Server IP : 104.21.25.180 / Your IP : 162.159.115.42 Web Server : Apache/2.4.37 System : Linux almalinux.duckdns.org 4.18.0-553.111.1.el8_10.x86_64 #1 SMP Sun Mar 8 20:06:07 EDT 2026 x86_64 User : ricodeal ( 1046) PHP Version : 7.4.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /usr/libexec/webmin/virtual-server/ |
Upload File : |
#!/usr/bin/perl
# Collect various pieces of general system information, for display by themes
# on their status pages. Run every 5 mins from Cron.
package virtual_server;
$main::no_acl_check++;
require './virtual-server-lib.pl';
$start = time();
# Make sure we are not already running
if (&test_lock($collected_info_file)) {
print "Already running\n";
exit(0);
}
# Lock the file
&lock_file($collected_info_file);
# Don't diff collected file
$gconfig{'logfiles'} = 0;
$gconfig{'logfullfiles'} = 0;
$WebminCore::gconfig{'logfiles'} = 0;
$WebminCore::gconfig{'logfullfiles'} = 0;
$no_log_file_changes = 1;
$info = &collect_system_info();
if ($info) {
if ($config{'collect_restart'}) {
&restart_collected_services($info);
}
&save_collected_info($info);
&add_historic_collected_info($info, $start);
}
# Update IP list cache
&build_local_ip_list();
# Update SPF and DMARC caches
&build_spf_dmarc_caches();
# Update DB of per-user last login times
&update_last_login_times();
# Update DB with last user logins for all domains
&update_domains_last_login_times()
if ($config{'show_domains_lastlogin'});
# For any domains that are due for a let's encrypt cert renewal, do it now
&apply_letsencrypt_cert_renewals();
# Resync all jails
©_all_domain_jailkit_files();
# Check if any domains are setup to be disabled
&disable_scheduled_virtual_servers();
# Kill disallowed server processes
if ($config{'check_ports'} == 2) {
foreach my $d (grep { $_->{'unix'} && !$_->{'parent'} }
&list_domains()) {
&kill_disallowed_domain_server_ports($d);
}
}
# Cleanup session files for domains with a website
if ($config{'php_session_age'}) {
foreach my $d (grep { &domain_has_website($_) } &list_domains()) {
&cleanup_php_sessions($d);
}
}
&run_post_actions_silently();
# Unlock the file
&unlock_file($collected_info_file);