X7ROOT File Manager
Current Path:
/usr/sbin
usr
/
sbin
/
π
..
π
accessdb
(11.55 KB)
π
addgnupghome
(3.05 KB)
π
addpart
(19.69 KB)
π
adduser
(134.39 KB)
π
agetty
(48.48 KB)
π
alternatives
(27.61 KB)
π
anacron
(35.52 KB)
π
apachectl
(4.31 KB)
π
applygnupgdefaults
(2.21 KB)
π
arp
(63.98 KB)
π
arpd
(52.98 KB)
π
arping
(23.19 KB)
π
atd
(27.17 KB)
π
atrun
(67 B)
π
audispd
(39.75 KB)
π
auditctl
(39.56 KB)
π
auditd
(125.65 KB)
π
augenrules
(3.7 KB)
π
aureport
(105.39 KB)
π
ausearch
(109.8 KB)
π
authconfig
(43.49 KB)
π
authconfig-tui
(43.49 KB)
π
autrace
(15.49 KB)
π
avcstat
(11.25 KB)
π
badblocks
(27.69 KB)
π
biosdecode
(24.15 KB)
π
blkdeactivate
(15.97 KB)
π
blkdiscard
(23.84 KB)
π
blkid
(77.92 KB)
π
blkmapd
(43.81 KB)
π
blockdev
(32.2 KB)
π
bridge
(77.61 KB)
π
btrfs
(690.59 KB)
π
btrfs-convert
(378.62 KB)
π
btrfs-debug-tree
(354.23 KB)
π
btrfs-find-root
(346.22 KB)
π
btrfs-image
(374.63 KB)
π
btrfs-map-logical
(350.27 KB)
π
btrfs-select-super
(346.2 KB)
π
btrfs-zero-log
(346.2 KB)
π
btrfsck
(690.59 KB)
π
btrfstune
(350.24 KB)
π
build-locale-archive
(860.52 KB)
π
cacertdir_rehash
(644 B)
π
capsh
(19.43 KB)
π
cbq
(32.73 KB)
π
cfdisk
(71.37 KB)
π
chcpu
(23.7 KB)
π
chgpasswd
(64.1 KB)
π
chkconfig
(40.22 KB)
π
chpasswd
(55.88 KB)
π
chronyd
(263.08 KB)
π
chroot
(32.48 KB)
π
clock
(48.44 KB)
π
clockdiff
(19.04 KB)
π
consoletype
(6.95 KB)
π
convertquota
(70.88 KB)
π
cracklib-check
(7.04 KB)
π
cracklib-format
(246 B)
π
cracklib-packer
(11.06 KB)
π
cracklib-unpacker
(7.02 KB)
π
create-cracklib-dict
(990 B)
π
crond
(68.48 KB)
π
ctrlaltdel
(11.2 KB)
π
ctstat
(20.09 KB)
π
ddns-confgen
(19.44 KB)
π
debugfs
(120.64 KB)
π
delpart
(19.69 KB)
π
depmod
(143.24 KB)
π
devlink
(64.72 KB)
π
dhclient
(414.34 KB)
π
dhclient-script
(30.38 KB)
π
dmfilemapd
(19.16 KB)
π
dmidecode
(120.2 KB)
π
dmsetup
(149.2 KB)
π
dmstats
(149.2 KB)
π
dnssec-checkds
(922 B)
π
dnssec-coverage
(924 B)
π
dnssec-dsfromkey
(56.6 KB)
π
dnssec-importkey
(52.59 KB)
π
dnssec-keyfromlabel
(60.52 KB)
π
dnssec-keygen
(64.55 KB)
π
dnssec-keymgr
(920 B)
π
dnssec-revoke
(48.46 KB)
π
dnssec-settime
(56.52 KB)
π
dnssec-signzone
(105.71 KB)
π
dnssec-verify
(48.46 KB)
π
dovecot
(370.66 KB)
π
dovecot_cpshutdown
(3.27 KB)
π
dracut
(55.83 KB)
π
dumpe2fs
(23.62 KB)
π
e2freefrag
(11.15 KB)
π
e2fsck
(250.55 KB)
π
e2image
(27.85 KB)
π
e2label
(69.41 KB)
π
e2undo
(11.32 KB)
π
e4defrag
(23.55 KB)
π
eapol_test
(1.77 MB)
π
edquota
(83.09 KB)
π
ether-wake
(73.26 KB)
π
ethtool
(293.87 KB)
π
exicyclog
(11.01 KB)
π
exigrep
(10.44 KB)
π
exim
(1.33 MB)
π
exim_checkaccess
(4.73 KB)
π
exim_dbmbuild
(82.09 KB)
π
exim_dumpdb
(134.47 KB)
π
exim_fixdb
(168.22 KB)
π
exim_lock
(64.66 KB)
π
exim_tidydb
(142.8 KB)
π
eximstats
(148.01 KB)
π
exinext
(8.02 KB)
π
exiqgrep
(5.46 KB)
π
exiqsumm
(5.07 KB)
π
exiwhat
(4.32 KB)
π
exportfs
(76.91 KB)
π
faillock
(15.02 KB)
π
fcgistarter
(23.85 KB)
π
fdformat
(11.27 KB)
π
fdisk
(195.8 KB)
π
filefrag
(15.23 KB)
π
findfs
(11.2 KB)
π
fixfiles
(11.03 KB)
π
fsck
(32.12 KB)
π
fsck.btrfs
(1.16 KB)
π
fsck.cramfs
(19.57 KB)
π
fsck.ext2
(250.55 KB)
π
fsck.ext3
(250.55 KB)
π
fsck.ext4
(250.55 KB)
π
fsck.minix
(73.32 KB)
π
fsck.xfs
(433 B)
π
fsfreeze
(11.23 KB)
π
fstrim
(40.59 KB)
π
fuser
(32.34 KB)
π
genhomedircon
(23.77 KB)
π
genhostid
(6.94 KB)
π
genl
(52.81 KB)
π
genl-ctrl-list
(11.27 KB)
π
genrandom
(11.16 KB)
π
getcap
(11.13 KB)
π
getenforce
(7.01 KB)
π
getpcaps
(7.07 KB)
π
getsebool
(11.13 KB)
π
glibc_post_upgrade.x86_64
(772.05 KB)
π
groupadd
(85.65 KB)
π
groupdel
(77.38 KB)
π
groupmems
(55.97 KB)
π
groupmod
(85.66 KB)
π
grpck
(59.93 KB)
π
grpconv
(51.73 KB)
π
grpunconv
(51.73 KB)
π
grub2-bios-setup
(1.04 MB)
π
grub2-get-kernel-settings
(2.08 KB)
π
grub2-install
(1.29 MB)
π
grub2-macbless
(1.02 MB)
π
grub2-mkconfig
(7.63 KB)
π
grub2-ofpathname
(225.5 KB)
π
grub2-probe
(1.04 MB)
π
grub2-reboot
(4 KB)
π
grub2-rpm-sort
(262.53 KB)
π
grub2-set-default
(3.46 KB)
π
grub2-setpassword
(2.96 KB)
π
grub2-sparc64-setup
(1.04 MB)
π
grubby
(71.27 KB)
π
gss-server
(23.13 KB)
π
gssproxy
(130.64 KB)
π
halt
(704.8 KB)
π
hardlink
(15.29 KB)
π
htcacheclean
(78.45 KB)
π
httpd
(2.31 MB)
π
hwclock
(48.44 KB)
π
iconvconfig
(22.15 KB)
π
iconvconfig.x86_64
(22.15 KB)
π
ifcfg
(2.99 KB)
π
ifconfig
(80.05 KB)
π
ifdown
(1.61 KB)
π
ifenslave
(19.74 KB)
π
ifstat
(40.6 KB)
π
ifup
(4.89 KB)
π
init
(1.56 MB)
π
insmod
(143.24 KB)
π
install-info
(110.42 KB)
π
installkernel
(2.69 KB)
π
intel-microcode2ucode
(11.1 KB)
π
ip
(459.59 KB)
π
ip6tables
(91.52 KB)
π
ip6tables-restore
(91.52 KB)
π
ip6tables-save
(91.52 KB)
π
ipmaddr
(19.33 KB)
π
iptables
(91.52 KB)
π
iptables-restore
(91.52 KB)
π
iptables-save
(91.52 KB)
π
iptunnel
(23.33 KB)
π
irqbalance
(48.5 KB)
π
isc-hmac-fixup
(11.2 KB)
π
kexec
(166.06 KB)
π
key.dns_resolver
(19.45 KB)
π
killall5
(23.17 KB)
π
kpartx
(39.47 KB)
π
lchage
(15.41 KB)
π
ldattach
(27.93 KB)
π
ldconfig
(952.08 KB)
π
lgroupadd
(11.28 KB)
π
lgroupdel
(11.26 KB)
π
lgroupmod
(15.44 KB)
π
lid
(15.4 KB)
π
lnewusers
(15.46 KB)
π
lnstat
(20.09 KB)
π
load_policy
(10.97 KB)
π
logrotate
(68.61 KB)
π
logsave
(11.27 KB)
π
losetup
(82.45 KB)
π
lpasswd
(15.5 KB)
π
lshw
(895.18 KB)
π
lsmod
(143.24 KB)
π
lsof
(150.57 KB)
π
luseradd
(15.38 KB)
π
luserdel
(11.3 KB)
π
lusermod
(19.43 KB)
π
lwresd
(768.04 KB)
π
makedumpfile
(376.52 KB)
π
matchpathcon
(11.19 KB)
π
mii-diag
(20.08 KB)
π
mii-tool
(19.51 KB)
π
mkdict
(246 B)
π
mkdumprd
(13.99 KB)
π
mke2fs
(94.08 KB)
π
mkfs
(11.25 KB)
π
mkfs.btrfs
(366.45 KB)
π
mkfs.cramfs
(36.16 KB)
π
mkfs.ext2
(94.08 KB)
π
mkfs.ext3
(94.08 KB)
π
mkfs.ext4
(94.08 KB)
π
mkfs.minix
(36.27 KB)
π
mkfs.xfs
(359.8 KB)
π
mkhomedir_helper
(19.05 KB)
π
mklost+found
(11.11 KB)
π
mkswap
(69.64 KB)
π
modinfo
(143.24 KB)
π
modprobe
(143.24 KB)
π
modsec-sdbm-util
(22.17 KB)
π
mount.nfs
(114.68 KB)
π
mount.nfs4
(114.68 KB)
π
mountstats
(40.59 KB)
π
mysqld
(244.14 MB)
π
mysqld-debug
(165.52 MB)
π
named
(768.04 KB)
π
named-checkconf
(32.25 KB)
π
named-checkzone
(32.06 KB)
π
named-compilezone
(32.06 KB)
π
named-journalprint
(11.13 KB)
π
nameif
(15.32 KB)
π
netreport
(10.96 KB)
π
new-kernel-pkg
(24.96 KB)
π
newusers
(93.45 KB)
π
nfsdcltrack
(40.11 KB)
π
nfsidmap
(19.32 KB)
π
nfsiostat
(23.64 KB)
π
nfsstat
(29.84 KB)
π
nl-class-add
(11.7 KB)
π
nl-class-delete
(11.55 KB)
π
nl-class-list
(11.48 KB)
π
nl-classid-lookup
(11.29 KB)
π
nl-cls-add
(11.76 KB)
π
nl-cls-delete
(11.68 KB)
π
nl-cls-list
(11.58 KB)
π
nl-link-list
(11.52 KB)
π
nl-pktloc-lookup
(11.36 KB)
π
nl-qdisc-add
(11.6 KB)
π
nl-qdisc-delete
(11.54 KB)
π
nl-qdisc-list
(11.63 KB)
π
nologin
(7.01 KB)
π
nscd
(180.02 KB)
π
nsec3hash
(11.13 KB)
π
nstat
(23.88 KB)
π
osd_login
(2.55 KB)
π
ownership
(15.04 KB)
π
packer
(11.06 KB)
π
pam_console_apply
(39.69 KB)
π
pam_tally2
(15.05 KB)
π
pam_timestamp_check
(10.97 KB)
π
paperconfig
(4.07 KB)
π
parted
(77.22 KB)
π
partprobe
(11.23 KB)
π
partx
(86.55 KB)
π
pdns_server
(98.68 MB)
π
pidof
(23.17 KB)
π
ping6
(64.63 KB)
π
pivot_root
(11.19 KB)
π
plipconfig
(11.06 KB)
π
poweroff
(704.8 KB)
π
ppp-watch
(23.2 KB)
π
pwck
(51.71 KB)
π
pwconv
(47.57 KB)
π
pwhistory_helper
(15.44 KB)
π
pwunconv
(47.59 KB)
π
quot
(70.66 KB)
π
quotacheck
(107.29 KB)
π
quotaoff
(75.03 KB)
π
quotaon
(75.03 KB)
π
quotastats
(14.03 KB)
π
rdisc
(23.17 KB)
π
rdma
(73.42 KB)
π
readprofile
(15.46 KB)
π
reboot
(704.8 KB)
π
repquota
(75.16 KB)
π
request-key
(19.41 KB)
π
resize2fs
(48.41 KB)
π
resizepart
(32.36 KB)
π
restorecon
(27.16 KB)
π
rmmod
(143.24 KB)
π
rndc
(35.88 KB)
π
rndc-confgen
(19.44 KB)
π
rotatelogs
(53 KB)
π
route
(66.6 KB)
π
routef
(173 B)
π
routel
(1.59 KB)
π
rpc.gssd
(88.73 KB)
π
rpc.idmapd
(48.13 KB)
π
rpc.mountd
(128.91 KB)
π
rpc.nfsd
(40.2 KB)
π
rpc.rquotad
(78.95 KB)
π
rpc.statd
(97.59 KB)
π
rpcbind
(60.07 KB)
π
rpcdebug
(18.05 KB)
π
rpcinfo
(27.3 KB)
π
rsyslogd
(648.45 KB)
π
rtacct
(41.93 KB)
π
rtcwake
(31.96 KB)
π
rtmon
(48.67 KB)
π
rtpr
(37 B)
π
rtstat
(20.09 KB)
π
runlevel
(704.8 KB)
π
runq
(1.33 MB)
π
runuser
(32.21 KB)
π
safe_finger
(11.08 KB)
π
sasldblistusers2
(19.26 KB)
π
saslpasswd2
(15.09 KB)
π
sefcontext_compile
(60.53 KB)
π
selabel_digest
(11.17 KB)
π
selabel_lookup
(11.14 KB)
π
selabel_lookup_best_match
(11.16 KB)
π
selabel_partial_match
(11.09 KB)
π
selinux_restorecon
(15.21 KB)
π
selinuxconlist
(11.1 KB)
π
selinuxdefcon
(11.12 KB)
π
selinuxenabled
(6.98 KB)
π
selinuxexeccon
(7.09 KB)
π
semanage
(42.76 KB)
π
semodule
(23.77 KB)
π
sendmail
(13.48 KB)
π
service
(3.17 KB)
π
sestatus
(15.02 KB)
π
setcap
(11.13 KB)
π
setenforce
(7.05 KB)
π
setfiles
(27.16 KB)
π
setquota
(83.16 KB)
π
setsebool
(14.99 KB)
π
sfdisk
(83.25 KB)
π
showmount
(19.56 KB)
π
shutdown
(704.8 KB)
π
sim_server
(10.97 KB)
π
slattach
(42.4 KB)
π
sln
(743.78 KB)
π
sm-notify
(68.43 KB)
π
smartctl
(864.48 KB)
π
smartd
(670.63 KB)
π
ss
(128.44 KB)
π
sshd
(836.88 KB)
π
sshd-keygen
(3.53 KB)
π
start-statd
(842 B)
π
suexec
(43.3 KB)
π
sulogin
(40.53 KB)
π
sushell
(67 B)
π
swaplabel
(15.31 KB)
π
swapoff
(15.53 KB)
π
swapon
(53.29 KB)
π
switch_root
(15.35 KB)
π
sys-unconfig
(184 B)
π
sysctl
(23.57 KB)
π
tc
(384.66 KB)
π
tcpd
(36.62 KB)
π
tcpdmatch
(40.83 KB)
π
telinit
(704.8 KB)
π
tracepath
(15.05 KB)
π
tracepath6
(15.05 KB)
π
try-from
(23.47 KB)
π
tsig-keygen
(19.44 KB)
π
tune2fs
(69.41 KB)
π
tuned
(3.29 KB)
π
tuned-adm
(5.22 KB)
π
udevadm
(414.27 KB)
π
umount.nfs
(114.68 KB)
π
umount.nfs4
(114.68 KB)
π
unix_chkpwd
(35.42 KB)
π
unix_update
(35.42 KB)
π
update-alternatives
(27.61 KB)
π
update-smart-drivedb
(14.34 KB)
π
useradd
(134.39 KB)
π
userdel
(93.5 KB)
π
usermod
(130.33 KB)
π
usernetctl
(11.03 KB)
π
uuserver
(14.97 KB)
π
vigr
(62.54 KB)
π
vipw
(62.54 KB)
π
virt-what
(11.57 KB)
π
visudo
(200.91 KB)
π
vmcore-dmesg
(19.28 KB)
π
vpddecode
(15.33 KB)
π
weak-modules
(31.9 KB)
π
whmapi0
(3.02 MB)
π
whmapi1
(3.02 MB)
π
whmlogin
(2.33 KB)
π
wipefs
(28.05 KB)
π
wpa_cli
(128.06 KB)
π
wpa_passphrase
(56.79 KB)
π
wpa_supplicant
(1.93 MB)
π
xfs_admin
(1.35 KB)
π
xfs_bmap
(638 B)
π
xfs_copy
(339.33 KB)
π
xfs_db
(576.38 KB)
π
xfs_estimate
(11.16 KB)
π
xfs_freeze
(767 B)
π
xfs_fsr
(31.83 KB)
π
xfs_growfs
(327.2 KB)
π
xfs_info
(472 B)
π
xfs_io
(122.68 KB)
π
xfs_logprint
(355.81 KB)
π
xfs_mdrestore
(314.81 KB)
π
xfs_metadump
(747 B)
π
xfs_mkfile
(1007 B)
π
xfs_ncheck
(650 B)
π
xfs_quota
(84.88 KB)
π
xfs_repair
(563.2 KB)
π
xfs_rtcp
(15.25 KB)
π
xqmstats
(14.03 KB)
π
xtables-multi
(91.52 KB)
π
yum-complete-transaction
(9.22 KB)
π
yumdb
(8.67 KB)
π
zdump
(14.02 KB)
π
zic
(50.02 KB)
π
zramctl
(82.23 KB)
Editing: dovecot_cpshutdown
#!/usr/local/cpanel/3rdparty/bin/perl use strict; use warnings; use Time::HiRes (); use constant DOVECOT_PROCESS_NAMES => qw( dovecot dovecot-auth dovecot/pop3-login dovecot/imap-login dovecot/anvil dovecot/log dovecot/config dovecot/auth dovecot-wrap ); my $MAX_WAIT = 30; #seconds my $SLEEP_INTERVAL = 0.1; my $pidfile = '/var/run/dovecot/master.pid'; #---------------------------------------------------------------------- if ( "@ARGV" =~ m<--help> ) { print <<END; This script shuts down Dovecot safely: gracefully at first, then forcefully if Dovecotβs processes donβt go away. END exit; } my $master_pid; if ( open my $pfh, '<', $pidfile ) { print "Opened β$pidfileβ β¦\n"; $master_pid = readline($pfh); if ( !defined $master_pid ) { die "read($pidfile): $!" if $!; } chomp $master_pid; if ( $master_pid =~ m<\A[0-9]+\z> ) { print "Master Dovecot process = $master_pid\n"; } else { warn "Invalid contents in β$pidfileβ: [$master_pid]\n"; undef $master_pid; } } elsif ( $!{'ENOENT'} ) { print "β$pidfileβ doesnβt exist!\n"; } else { die "open($pidfile): $!"; } my @CMD = qw( /usr/sbin/dovecot stop ); print "Executing β@CMDβ β¦\n"; my $pid = fork(); die "Failed to fork child process for β@CMDβ" if !defined $pid; if ( $pid ) { print "Waiting $MAX_WAIT seconds for process $pid to end β¦\n"; my $start = time(); my $killed; while ( !waitpid( $pid, 1 ) ) { if ( time > ( $start + $MAX_WAIT ) ) { print "Process $pid has taken over $MAX_WAIT seconds to shut down.\n"; kill 'KILL', $pid; waitpid($pid, 0); $killed = 1; last; } Time::HiRes::sleep($SLEEP_INTERVAL); } # If we killed the dovecot stop command we want to fallthrough to the rest of the shutdown # but not if it terminated with a legitimate error. exit 1 if $? && !$killed; } else { exec(@CMD) or die "Failed to run β@CMDβ: $!"; } print "Done! Waiting $MAX_WAIT seconds for process $master_pid to end β¦\n"; if ( length $master_pid ) { my $start = time(); my $end; while ( !$end ) { if ( kill 'ZERO', $master_pid ) { if ( time > ( $start + $MAX_WAIT ) ) { print "Process $master_pid has taken over $MAX_WAIT seconds to shut down.\n"; _safekill_any_remaining_dovecot_processes(); $end = 1; } Time::HiRes::sleep($SLEEP_INTERVAL); } else { print "Dovecot is now shut down.\n"; # We may have some stragglers so we # do a safekill just in case in order to handle: # # Case 187449: /etc/init.d/dovecot does not stop # properly dovecot # # When stopping dovecot we are killing some processes # but a few of them might survive when dovecot-wrap is # stalled. _safekill_any_remaining_dovecot_processes(); $end = 1; } } } sub _safekill_any_remaining_dovecot_processes { print "Any remaining Dovecot processes will now be terminated.\n"; system( '/usr/local/cpanel/etc/init/safekill', DOVECOT_PROCESS_NAMES ); } 1;
Upload File
Create Folder