Server : Apache
System : Linux vps-1289444.devslamantis.cl 3.10.0-1160.139.1.el7.tuxcare.els2.x86_64 #1 SMP Mon Nov 3 13:30:41 UTC 2025 x86_64
User : vspt ( 1013)
PHP Version : 7.4.33
Disable Function : NONE
Directory :  /usr/share/lve/modlscapi/utils/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]


Current File : //usr/share/lve/modlscapi/utils/lsapi-cache
#!/bin/bash

# Copyright © Cloud Linux GmbH & Cloud Linux Software, Inc 2010-2021 All Rights Reserved
#
# Licensed under CLOUD LINUX LICENSE AGREEMENT
# http://cloudlinux.com/docs/LICENSE.TXT
#

[ -z "$LSAPICACHE_LOAD_DIRS" ] && exit 0

[ -z "$LSAPICACHE_LOGFILE" ] && LSAPICACHE_LOGFILE=/usr/share/lve/modlscapi/logs/lsapi-cache.log

D=`date`; echo "$D: the following dirs will be processed: $LSAPICACHE_LOAD_DIRS" >>$LSAPICACHE_LOGFILE

OIFS="$IFS"
IFS=":"

for d in $LSAPICACHE_LOAD_DIRS
do
    [ -d "$d" ] || continue
    D=`date`; echo "$D: loading shared libraries from ${d}..." >>$LSAPICACHE_LOGFILE
    /usr/bin/find "$d" -type f -executable -exec /usr/bin/ldd {} \; >/dev/null 2>&1
    D=`date`; echo "$D: ${d} - done." >>$LSAPICACHE_LOGFILE
done

for d in $LSAPICACHE_LOAD_DIRS
do
    [ -d "$d" ] || continue
    D=`date`; echo "$D: loading lsphp from ${d}..." >>$LSAPICACHE_LOGFILE
    /usr/bin/find "$d" -type f -executable -name lsphp -exec {} -i \; >/dev/null 2>&1
    D=`date`; echo "$D: ${d} - done." >>$LSAPICACHE_LOGFILE
done


IFS="$OIFS"
exit 0

F1le Man4ger