MSV FM

[email protected]: ~ $
Path : /proc/self/root/scripts/
File Upload :
Current < : //proc/self/root/scripts/perform_sqlite_auto_rebuild_db_maintenance

#!/usr/local/cpanel/3rdparty/bin/perl

#                                      Copyright 2024 WebPros International, LLC
#                                                           All rights reserved.
# [email protected]                                         http://cpanel.net
# This code is subject to the cPanel license. Unauthorized copying is prohibited.

package scripts::perform_sqlite_auto_rebuild_db_maintenance;

use strict;
use warnings;

use parent qw( Cpanel::HelpfulScript );

use constant _OPTIONS => ();

use Try::Tiny;

use Cpanel::Debug              ();
use Cpanel::LoadModule         ();
use Cpanel::Update::InProgress ();
use Cpanel::Update::IsCron     ();

=encoding utf-8

=head1 NAME

scripts::perform_sqlite_auto_rebuild_db_maintenance

=head1 SYNOPSIS

/scripts/perform_sqlite_auto_rebuild_db_maintenance

=head1 DESCRIPTION

This script is used by the maintenance script to automatically check and repair auto-rebuilt SQLite databases

=cut

__PACKAGE__->new(@ARGV)->run() if !caller();

use constant DATABASE_PACKAGES => qw(
  Cpanel::Apache::TLS::Index Cpanel::Apache::TLS::Index::DB
  Cpanel::BandwidthDB::RootCache Cpanel::BandwidthDB::RootCache
  Cpanel::EximStats::DB::Sqlite Cpanel::EximStats::DB::Sqlite
);

sub run {
    my ($self) = @_;

    if ( Cpanel::Update::InProgress->is_on() && !Cpanel::Update::IsCron->is_on() ) {
        $self->say_maketext('A manual update of [asis,cPanel amp() WHM] is in progress. This script will exit now.');
        return;
    }

    my %packages = DATABASE_PACKAGES();

    for my $package ( keys %packages ) {
        try {
            Cpanel::LoadModule::load_perl_module($package);

            # Cpanel::Apache::TLS::Index uses Cpanel::Apache::TLS::Index::DB as its internal package for the database
            my $dbh = $packages{$package}->new( full_integrity_check => 1 );
        }
        catch {
            Cpanel::Debug::log_warn("There was an error attempting to do an integrity check on '$package': $_");
        };
    }

    return;
}

1;
Bethany
Bethany
0%

THE FINEST HOTEL NEAR LAKE KIVU

The Perfect Base For You

Required fields are followed by *





EC1A68011

About Us

Delicious Interior With The Pinch Of Everything

Bethany Investment group is Presbyterian church in Rwanda(EPR) company that manage Hotel and Guest house in Karongi (Bethany Hotel), ISANO branch in GIKONDO(Kigali), Kiyovu branch(Kigali), AMIZERO branch(Nyagatare-East) and Gisenyi Branch(Rubavu).

Accomodation

Get a Comfortable Room
Feel The Comfort

Get a comfortable room and feel our hotel’s comfort. Bethany Hotel features a variety of fully furnished rooms with extra space, Executive rooms, Deluxe rooms with a beautiful lake view and garden space, Deluxe rooms, comfort rooms, family rooms and standard rooms at your service.

Standard Single

Services

We Provide Top Class Facility
Especially For You

Beach BBQ Party

Kick back on the beach& and enjoy our berbecue from our masterchef

Breakfast

Kick back at our hotels& enjoy our breakfast from our masterchef

Conference Hall

Kick back at our hotels& enjoy our conference halls from all bethany branches

Enjoy with your partner

Honeymoon Package

80%

Get In Touch

Don’t Miss Any Update

    +

    Search your Room

    Required fields are followed by *