From 4148dfd6e604942d3eaf89264bba3ddb5a295fc3 Mon Sep 17 00:00:00 2001 From: Kevin Date: Tue, 18 Jan 2022 12:42:26 +0800 Subject: [PATCH] Modified the PID being inserted to /data//shared/pids/passenger./pid to resolve the issue of stop and restart attempts failure --- cookbooks/passenger5/templates/default/app_control.erb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cookbooks/passenger5/templates/default/app_control.erb b/cookbooks/passenger5/templates/default/app_control.erb index 80852cd7..7a7ea6de 100644 --- a/cookbooks/passenger5/templates/default/app_control.erb +++ b/cookbooks/passenger5/templates/default/app_control.erb @@ -29,8 +29,8 @@ case "$1" in if [ -n $NGINX_PID ]; then if [ ! -z $PASSENGER_PID ]; then if [ ! -f $PIDFILE ]; then - echo $PASSENGER_PID > $PIDFILE - echo "Passenger: PIDFILE $PIDFILE was recreated with PID $PASSENGER_PID" + echo $NGINX_PID > $PIDFILE + echo "Passenger: PIDFILE $PIDFILE was recreated with PID $NGINX_PID" fi else echo "Passenger: Nginx is running with PID $NGINX_PID, but the standalone Passenger process is missing."