HEX
Server: Apache
System: Linux server1.panigaletech.com 5.4.0-1103-aws #111~18.04.1-Ubuntu SMP Tue May 23 20:04:10 UTC 2023 x86_64
User: ubuntu (1000)
PHP: 7.4.30
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Upload Files
File: //proc/self/root/etc/profile.d/KutHupStart-TESTJS72184235756529.sh
#
# Run KutHupstart.sh for console logins. This script runs KaUsrTsk in
# session mode for console logins.
#
# Copyright 2013 Kaseya. All rights reserved.
#

LOG=/tmp/kut-huptest.log
TTY=$(tty)
AIP=/opt/Kaseya/TESTJS72184235756529

if [ -f "$AIP/tmp/kutMask" ]
then
    Debug=true
fi

syslog() {
    [ "$Debug" == "true" ] && logger -t "[KutHupStart.sh]" -p "user.debug" "$1"
}

# Note: The installer should set AIP during installation. If its empty here, something
# has gone wrong in the installation.
if [ -n "$AIP" ]
then
    case "$TTY" in
    /dev/tty*)
        if [ "$(uname -m)" == "x86_64" ]
        then
            MTYPE=64
        fi

        # Only do this for bash, as other shells (sh and dash) don't support huponexit.
        if [ "$SHELL" == "/bin/bash" -a -x "$AIP/libexec$MTYPE/KaUsrTsk" ]
        then
            shopt -s huponexit

            syslog "Starting KaUsrTsk in session mode from KutHupStart."
            $AIP/libexec$MTYPE/KaUsrTsk --session --hupstart 2> /dev/null > /dev/null &
        fi
        ;;
    esac
fi