#!/usr/local/cpanel/3rdparty/bin/perl
# cpanel - scripts/userdirctl Copyright 2022 cPanel, L.L.C.
# 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 Cpanel::Config::LoadUserDomains ();
use Cpanel::Config::CpConfGuard ();
use Cpanel::Config::LoadConfig ();
use Cpanel::ConfigFiles::Apache 'apache_paths_facade'; # see POD for import specifics
use Cpanel::ConfigFiles::Apache::Config ();
use Cpanel::SafeFile ();
use Cpanel::Logger ();
use Cpanel::WildcardDomain ();
use Cpanel::HttpUtils::ApRestart::BgSafe ();
my $logger = Cpanel::Logger->new();
my $ctl = lc shift @ARGV;
if ( $ctl !~ /^o(n|ff)$/ ) {
die "$0: usage: $0