�&ǐk�@'bJ�h�ۊL'}T� :��'2�Z#$��n�a��� �>a��`��_3d�Qpt�/�P -��#5�,�M��� �pA:©�q�����NW��ډ�A���� �9nʺج���� �TSM��{J6?7��r�@�\����D��� �׶���s�f�TJj?"��D��`?��̒� b�#�%�C*v�$�{�$����5Ծ�F�s��y�e/8��h-�f�̰&(����Gj�L:U� 2�� ����v�_k����Y��gp,�k�WF�R������_C�R��N@���R�@�ߔ?A�w9���F("iNa-S���Q�o�3tDMLh*�#4k�T/iQ��Y*�G��m����)��8�hBm/�I�,g�ﯖ���Z��}�Cz�q@´��d.����L�ŕ�,��1�Z�܌�: ̪���F+J-'��c�tvJ8��]Q-��b��y �6;*J`r_�d ��'�G ~p��)'�C,�%F��E(��2�k�����lР�z�!�=t ��_�0��f7��� ;�p�|�U �% \$execute, 'help' => \$help, ); if ($help) { Pod::Usage::pod2usage( -verbose => 2, -exitval => 1, ); } if ( not $execute ) { my $msg = qq{To execute, use the -x flag.}; die($msg); } $self->run(); return 1; } sub run { my $self = shift; my $restart_tailwatchd; if ( -e $INTERCHANGE_FILE ) { unlink($INTERCHANGE_FILE); ++$restart_tailwatchd; } if ( -e $INTERCHANGE_RESTART_FILE ) { unlink($INTERCHANGE_RESTART_FILE); } if ( -e $CHKSERVD_CONF_FILE ) { if ( Cpanel::FileUtils::Lines::has_txt_in_file( $CHKSERVD_CONF_FILE, 'interchange' ) ) { Cpanel::FileUtils::Modify::remlinefile( $CHKSERVD_CONF_FILE, 'interchange:', 'begin' ); ++$restart_tailwatchd; } } if ($restart_tailwatchd) { local $@; try { Cpanel::ServerTasks::queue_task( ['TailwatchTasks'], 'reloadtailwatch' ); } catch { warn "There was an error restarting tailwatchd: $_"; }; } return 0; } if ( not caller() ) { my $cleanup = scripts::cleanupinterchange->new(); $cleanup->as_script; exit 0; } 1; __END__ =head1 NAME cleanupinterchange - cleans up cruft left over from the interchange removal =head1 SYNOPSIS cleanup_interchange [options] Options: -help print help message -x execute the change =head1 DESCRIPTION In cPanel & WHM version 11.34, we removed Interchange, but small remnants were left behind. This script cleans up that clutter. If the remnants have already been removed, this script does nothing. =cut