File manager - Edit - /usr/local/cpanel/install/CpanelService.pm
Back
package Install::CpanelService; # Copyright 2024 WebPros International, LLC # All rights reserved. # copyright@cpanel.net http://cpanel.net # This code is subject to the cPanel license. Unauthorized copying is prohibited. use strict; use warnings; use base qw( Cpanel::Task ); use Cpanel::Init::Simple (); our $VERSION = '1.0'; =head1 DESCRIPTION Update and enable cpanel service. We do not restart cPanel here because this will be done right at the end of post_sync_cleanup in "Starting cPanel" =over 1 =item Type: Fresh Install, Sanity =item Frequency: always =item EOL: never =back =cut exit __PACKAGE__->runtask() unless caller; sub new { my $proto = shift; my $self = $proto->SUPER::new; $self->set_internal_name('cpanelservice'); $self->add_dependencies(qw(pre users)); return $self; } sub perform { my $self = shift; mkdir '/usr/local/cpanel/logs'; # install dnsonly service # on Systemd systems dnsonly or cpanel are both using the cpanel service # subservices are using a 'ConditionPathExists=!/var/cpanel/dnsonly' check foreach my $service (qw< cpanel cpanelquotaonboot cpanel-onboot >) { Cpanel::Init::Simple::call_cpservice_with( $service => qw{ install enable } ); } return 1; } 1; __END__
| ver. 1.4 |
Github
|
.
| PHP 8.1.34 | Generation time: 0.02 |
proxy
|
phpinfo
|
Settings