📁
SKYSHELL MANAGER
PHP v8.2.31
Create
Create
Path:
root
/
home
/
thevaxnx
/
nativize.com
/
staging
/
wp-includes
/
js
/
tinymce
/
themes
/
Name
Size
Perm
Actions
📁
inlite
-
0755
🗑️
🏷️
🔒
📁
modern
-
0755
🗑️
🏷️
🔒
📄
wp-links-opml.php
6.83 KB
0444
🗑️
🏷️
⬇️
✏️
🔒
Edit: DRELOAD
#!/usr/local/cpanel/3rdparty/bin/perl package HostingCommon::DRELOAD; use strict; use warnings "all"; use Cpanel::TaskQueue::Reader (); use Cpanel::ServerTasks; use Date::Parse; use POSIX qw/strftime/; use Cpanel::Logger; use parent 'Cpanel::AdminBin::Script::Call'; __PACKAGE__->run() if !caller; sub _actions { return qw( app_reload ) } sub app_reload { use Data::Dumper; my ($self, $command) = @_; my $logger = Cpanel::Logger->new({ alternate_logfile => '/var/log/nc_audit/apache_reload.log' }); my $localt = str2time(strftime('%D %r',localtime)); my $tasks = Cpanel::TaskQueue::Reader::read_sched()->{waiting_queue}; my $counter = 0; my $user = $self->get_caller_username(); if ($command) { if (scalar(@$tasks) > 0) { for my $task (@$tasks) { $logger->info($task->{'task'}{'_command'}); if ($task->{'task'}{'_command'} eq "apache_restart") { ++$counter; if (($task->{'time'} - $localt) > 300) { $logger->info("User $user updated reload timeout to 300 seconds"); return Cpanel::ServerTasks::schedule_task(['ApacheTasks'], 300, 'apache_restart'); } else { $logger->info("Can't add another intance of apache reload beacuse one is already there"); } } } if ($counter == 0) { $logger->info("User $user initiated Apache reload"); return Cpanel::ServerTasks::schedule_task(['ApacheTasks'], 300, 'apache_restart'); } } else { $logger->info("User $user initiated Apache reload"); return Cpanel::ServerTasks::schedule_task(['ApacheTasks'], 300, 'apache_restart'); } } else { $logger->info("No command got"); } } 1;
Save