=========================================================== .___ __ __ _________________ __ __ __| _/|__|/ |_ / ___\_` __ \__ \ | | \/ __ | | \\_ __\ / /_/ > | \// __ \| | / /_/ | | || | \___ /|__| (____ /____/\____ | |__||__| /_____/ \/ \/ grep rough audit - static analysis tool v2.8 written by @Wireghoul =================================[justanotherhacker.com]=== puma-4.3.6/docs/deployment.md-67-* Have your upstream proxy set a header with the time it received the request: puma-4.3.6/docs/deployment.md:68: * nginx: `proxy_set_header X-Request-Start "${msec}";` puma-4.3.6/docs/deployment.md-69- * haproxy: `http-request set-header X-Request-Start "%t";` ############################################## puma-4.3.6/lib/puma/cluster.rb-11- # to boot and serve a Ruby application when puma "workers" are needed puma-4.3.6/lib/puma/cluster.rb:12: # i.e. when using multi-processes. For example `$ puma -w 5` puma-4.3.6/lib/puma/cluster.rb-13- # ############################################## puma-4.3.6/lib/puma/reactor.rb-15- # puma-4.3.6/lib/puma/reactor.rb:16: # Each Puma "worker" process has its own Reactor. For example if you start puma with `$ puma -w 5` then puma-4.3.6/lib/puma/reactor.rb-17- # it will have 5 workers and each worker will have it's own reactor. ############################################## puma-4.3.6/lib/puma/single.rb-9- # to boot and serve a Ruby application when no puma "workers" are needed puma-4.3.6/lib/puma/single.rb:10: # i.e. only using "threaded" mode. For example `$ puma -t 1:5` puma-4.3.6/lib/puma/single.rb-11- # ############################################## puma-4.3.6/tools/jungle/init.d/puma-23-CONFIG=/etc/puma.conf puma-4.3.6/tools/jungle/init.d/puma:24:JUNGLE=`cat $CONFIG` puma-4.3.6/tools/jungle/init.d/puma-25-RUNPUMA=/usr/local/bin/run-puma ############################################## puma-4.3.6/tools/jungle/init.d/puma-40- for i in $JUNGLE; do puma-4.3.6/tools/jungle/init.d/puma:41: dir=`echo $i | cut -d , -f 1` puma-4.3.6/tools/jungle/init.d/puma-42- do_start_one $dir ############################################## puma-4.3.6/tools/jungle/init.d/puma-48- if [ -e $PIDFILE ]; then puma-4.3.6/tools/jungle/init.d/puma:49: PID=`cat $PIDFILE` puma-4.3.6/tools/jungle/init.d/puma-50- # If the puma is running, restart it, otherwise run it. ############################################## puma-4.3.6/tools/jungle/init.d/puma-61-do_start_one_do() { puma-4.3.6/tools/jungle/init.d/puma:62: i=`grep $1 $CONFIG` puma-4.3.6/tools/jungle/init.d/puma:63: dir=`echo $i | cut -d , -f 1` puma-4.3.6/tools/jungle/init.d/puma:64: user=`echo $i | cut -d , -f 2` puma-4.3.6/tools/jungle/init.d/puma:65: config_file=`echo $i | cut -d , -f 3` puma-4.3.6/tools/jungle/init.d/puma-66- if [ "$config_file" = "" ]; then ############################################## puma-4.3.6/tools/jungle/init.d/puma-68- fi puma-4.3.6/tools/jungle/init.d/puma:69: log_file=`echo $i | cut -d , -f 4` puma-4.3.6/tools/jungle/init.d/puma-70- if [ "$log_file" = "" ]; then ############################################## puma-4.3.6/tools/jungle/init.d/puma-72- fi puma-4.3.6/tools/jungle/init.d/puma:73: environment=`echo $i | cut -d , -f 5` puma-4.3.6/tools/jungle/init.d/puma-74- ############################################## puma-4.3.6/tools/jungle/init.d/puma-94- for i in $JUNGLE; do puma-4.3.6/tools/jungle/init.d/puma:95: dir=`echo $i | cut -d , -f 1` puma-4.3.6/tools/jungle/init.d/puma-96- do_stop_one $dir ############################################## puma-4.3.6/tools/jungle/init.d/puma-106- if [ -e $PIDFILE ]; then puma-4.3.6/tools/jungle/init.d/puma:107: PID=`cat $PIDFILE` puma-4.3.6/tools/jungle/init.d/puma-108- if ps -p $PID > /dev/null; then puma-4.3.6/tools/jungle/init.d/puma:109: log_daemon_msg "---> About to kill PID `cat $PIDFILE`" puma-4.3.6/tools/jungle/init.d/puma-110- if [ "$USE_LOCAL_BUNDLE" -eq 1 ]; then ############################################## puma-4.3.6/tools/jungle/init.d/puma-130- for i in $JUNGLE; do puma-4.3.6/tools/jungle/init.d/puma:131: dir=`echo $i | cut -d , -f 1` puma-4.3.6/tools/jungle/init.d/puma-132- do_restart_one $dir ############################################## puma-4.3.6/tools/jungle/init.d/puma-143- log_daemon_msg "--> About to restart puma $1" puma-4.3.6/tools/jungle/init.d/puma:144: kill -s USR2 `cat $PIDFILE` puma-4.3.6/tools/jungle/init.d/puma-145- # TODO Check if process exist ############################################## puma-4.3.6/tools/jungle/init.d/puma-157- for i in $JUNGLE; do puma-4.3.6/tools/jungle/init.d/puma:158: dir=`echo $i | cut -d , -f 1` puma-4.3.6/tools/jungle/init.d/puma-159- do_phased_restart_one $dir ############################################## puma-4.3.6/tools/jungle/init.d/puma-170- log_daemon_msg "--> About to restart puma $1" puma-4.3.6/tools/jungle/init.d/puma:171: kill -s USR1 `cat $PIDFILE` puma-4.3.6/tools/jungle/init.d/puma-172- # TODO Check if process exist ############################################## puma-4.3.6/tools/jungle/init.d/puma-184- for i in $JUNGLE; do puma-4.3.6/tools/jungle/init.d/puma:185: dir=`echo $i | cut -d , -f 1` puma-4.3.6/tools/jungle/init.d/puma-186- do_status_one $dir ############################################## puma-4.3.6/tools/jungle/init.d/puma-194- PIDFILE=$1/tmp/puma/pid puma-4.3.6/tools/jungle/init.d/puma:195: i=`grep $1 $CONFIG` puma-4.3.6/tools/jungle/init.d/puma:196: dir=`echo $i | cut -d , -f 1` puma-4.3.6/tools/jungle/init.d/puma-197- ############################################## puma-4.3.6/tools/jungle/init.d/puma-204- fi puma-4.3.6/tools/jungle/init.d/puma:205: # kill -s USR2 `cat $PIDFILE` puma-4.3.6/tools/jungle/init.d/puma-206- # TODO Check if process exist ############################################## puma-4.3.6/tools/jungle/init.d/puma-216- if [ -d "$1" ]; then puma-4.3.6/tools/jungle/init.d/puma:217: if [ "`grep -c "^$1" $CONFIG`" -eq 0 ]; then puma-4.3.6/tools/jungle/init.d/puma-218- str=$1 ############################################## puma-4.3.6/tools/jungle/init.d/puma-227- # User to run it as puma-4.3.6/tools/jungle/init.d/puma:228: if [ "`grep -c "^$2:" /etc/passwd`" -eq 0 ]; then puma-4.3.6/tools/jungle/init.d/puma-229- echo "The user $2 doesn't exist." ############################################## puma-4.3.6/tools/jungle/init.d/puma-258-do_remove() { puma-4.3.6/tools/jungle/init.d/puma:259: if [ "`grep -c "^$1" $CONFIG`" -eq 0 ]; then puma-4.3.6/tools/jungle/init.d/puma-260- echo "There's no app $1 to remove." ############################################## puma-4.3.6/tools/jungle/init.d/puma-318- else puma-4.3.6/tools/jungle/init.d/puma:319: i=`grep $2 $CONFIG` puma-4.3.6/tools/jungle/init.d/puma:320: dir=`echo $i | cut -d , -f 1` puma-4.3.6/tools/jungle/init.d/puma-321- do_start_one $dir ############################################## puma-4.3.6/tools/jungle/init.d/puma-332- else puma-4.3.6/tools/jungle/init.d/puma:333: i=`grep $2 $CONFIG` puma-4.3.6/tools/jungle/init.d/puma:334: dir=`echo $i | cut -d , -f 1` puma-4.3.6/tools/jungle/init.d/puma-335- do_stop_one $dir ############################################## puma-4.3.6/tools/jungle/init.d/puma-347- else puma-4.3.6/tools/jungle/init.d/puma:348: i=`grep $2 $CONFIG` puma-4.3.6/tools/jungle/init.d/puma:349: dir=`echo $i | cut -d , -f 1` puma-4.3.6/tools/jungle/init.d/puma-350- do_status_one $dir ############################################## puma-4.3.6/tools/jungle/init.d/puma-361- else puma-4.3.6/tools/jungle/init.d/puma:362: i=`grep $2 $CONFIG` puma-4.3.6/tools/jungle/init.d/puma:363: dir=`echo $i | cut -d , -f 1` puma-4.3.6/tools/jungle/init.d/puma-364- do_restart_one $dir ############################################## puma-4.3.6/tools/jungle/init.d/puma-375- else puma-4.3.6/tools/jungle/init.d/puma:376: i=`grep $2 $CONFIG` puma-4.3.6/tools/jungle/init.d/puma:377: dir=`echo $i | cut -d , -f 1` puma-4.3.6/tools/jungle/init.d/puma-378- do_phased_restart_one $dir ############################################## puma-4.3.6/tools/jungle/upstart/puma-manager.conf-25-pre-start script puma-4.3.6/tools/jungle/upstart/puma-manager.conf:26: for i in `cat $PUMA_CONF`; do puma-4.3.6/tools/jungle/upstart/puma-manager.conf:27: app=`echo $i | cut -d , -f 1` puma-4.3.6/tools/jungle/upstart/puma-manager.conf-28- logger -t "puma-manager" "Starting $app"