Uname:Linux mail.sarafai.ru 6.1.0-43-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.162-1 (2026-02-08) x86_64

403WebShell
403Webshell
Server IP : 82.148.16.210  /  Your IP : 216.73.216.19
Web Server : nginx/1.29.5
System : Linux mail.sarafai.ru 6.1.0-43-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.162-1 (2026-02-08) x86_64
User : root ( 0)
PHP Version : 7.4.33
Disable Function : 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,
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : OFF
Directory :  /proc/thread-self/root/proc/746/cwd/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /proc/thread-self/root/proc/746/cwd/gunicorn_start.sh
#!/bin/bash

NAME="sarafai"
ENV=/srv/projects/env3
DJANGODIR=${ENV}/src
SOCKFILE=${ENV}/run/gunicorn.sock
USER=www-data
GROUP=www-data
NUM_WORKERS=3
DJANGO_SETTINGS_MODULE=project.settings
DJANGO_WSGI_MODULE=project.wsgi
#LOGFILE=${ENV}/log/debug.log

# fix
mkdir -p ${ENV}/run

echo "Starting [${NAME}] as `whoami`"

## Fix permissions
#sudo chown ${USER}:${GROUP} -R ${ENV}

# Activate the virtual environment
cd ${DJANGODIR}
source ${ENV}/bin/activate
export DJANGO_SETTINGS_MODULE=${DJANGO_SETTINGS_MODULE}
export PYTHONPATH=${DJANGODIR}:${PYTHONPATH}

# Create the run directory if it doesn't exist
RUNDIR=$(dirname ${SOCKFILE})
#LOGDIR=$(dirname ${LOGFILE})
test -d ${RUNDIR} || mkdir -p ${RUNDIR}
#test -d ${LOGDIR} || mkdir -p ${LOGDIR}

# Start your Django Unicorn
# Programs meant to be run under supervisor should not daemonize themselves (do not use --daemon)
exec ${ENV}/bin/gunicorn ${DJANGO_WSGI_MODULE}:application \
  --name ${NAME} \
  --workers ${NUM_WORKERS} \
  --user=${USER} --group=${GROUP} \
  --bind=unix:${SOCKFILE} \
  --log-level=debug \
  --error-logfile=${ENV}/logs/gunicorn/error.log \
  --limit-request-fields 100 \
  --reload

#  --access-logfile=${ENV}/logs/gunicorn/access.log
#  --log-file=- \
#  --log-file=${LOGFILE}


Youez - 2016 - github.com/yon3zu
LinuXploit