HEX
Server: LiteSpeed
System: Linux houston.panomity.com 6.8.0-100-generic #100-Ubuntu SMP PREEMPT_DYNAMIC Tue Jan 13 16:40:06 UTC 2026 x86_64
User: nudepix (1011)
PHP: 7.4.33
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: //opt/resolve/scripts/script.start
#!/bin/bash

if [ -d "/home/resolve/Cyclone" ]
then
	IS_DVD_INSTALLATION=true
	RESOLVE_BASE="/home/resolve"
else
	IS_DVD_INSTALLATION=false
	RESOLVE_BASE="/opt/resolve"
fi

if ${IS_DVD_INSTALLATION}
then
	USER=`whoami`
	if [ "${USER}" != "resolve" ]
	then
		echo "Only user resolve can do this"
		exit 1
	fi
fi

PID=$$
RUNNING_PROCS=`pgrep script.start | wc -l`
NUM_CHILD_PROCS=`pgrep -P ${PID} script.start | wc -l`
# On CentOS 5.4, a child process is spawned to run the pgrep - ignore that
RUNNING_PROCS=$((${RUNNING_PROCS}-${NUM_CHILD_PROCS}))

if [ ${RUNNING_PROCS} -gt 1 ]
then
	echo "Another instance of script.start is running..."
	exit 0
fi

killall -9 resolve

if ${IS_DVD_INSTALLATION}
then
	sudo modprobe nvidia_uvm
	~/bin/deviceQuery > /dev/null
fi

/usr/bin/xhost +localhost

if ${IS_DVD_INSTALLATION}
then
	DISPLAY=:0.0 sudo /home/resolve/Cyclone/script.checkfirmware

	# Ensure that the license dongle access privileges are correct
	sudo /usr/local/driver/SDX/sdxinit.sh

	# Extra processing required on localhost
	/home/resolve/crash_reporter

	# Restart the DPH service
	echo "Restarting DPH..."
	sudo service dph restart
fi

# Additional supported arguments
if [ "${1}" == "-rr" ]
then
	ARGS="-rr"
else
	ARGS=""
fi

SITECOUNT=1
CONFIG_FILE="${RESOLVE_BASE}/configs/config.dat"

pushd ${RESOLVE_BASE}
DISPLAY=:0.0 __GL_SYNC_TO_VBLANK=0 LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:${RESOLVE_BASE}/libs nohup ${RESOLVE_BASE}/bin/resolve ${CONFIG_FILE} ${SITECOUNT} ${ARGS} >& ${RESOLVE_BASE}/logs/site${SITECOUNT}.log &
popd

exit 0