From db9ae1e253f13ebb6499248f1ea84c6b1a7a7850 Mon Sep 17 00:00:00 2001 From: Daniel Polito Date: Mon, 20 May 2024 11:21:40 -0300 Subject: [PATCH] Fix Permission | Depends --- 8.0-swoole-nginx-prod/supervisor.conf | 4 ++-- 8.0-swoole-nginx/supervisor.conf | 4 ++-- 8.1-swoole-nginx-prod/supervisor.conf | 4 ++-- 8.1-swoole-nginx/supervisor.conf | 4 ++-- 8.2-swoole-nginx-prod/supervisor.conf | 4 ++-- 8.2-swoole-nginx/supervisor.conf | 4 ++-- 8.3-swoole-nginx-prod/supervisor.conf | 4 ++-- 8.3-swoole-nginx/supervisor.conf | 4 ++-- template/supervisor-conf.blade.php | 4 ++-- 9 files changed, 18 insertions(+), 18 deletions(-) diff --git a/8.0-swoole-nginx-prod/supervisor.conf b/8.0-swoole-nginx-prod/supervisor.conf index e27a1e7..312fe84 100644 --- a/8.0-swoole-nginx-prod/supervisor.conf +++ b/8.0-swoole-nginx-prod/supervisor.conf @@ -1,12 +1,12 @@ [program:nginx] -depends_on = php-fpm +depends_on = octane command = nginx -g "daemon off;" stopasgroup = true stderr_logfile = /dev/stderr stdout_logfile = /dev/stdout [program:octane] -command = php artisan octane:start --server=swoole +command = su-exec kool php artisan octane:start --server=swoole stopasgroup = true stderr_logfile = /dev/stderr stdout_logfile = /dev/stdout diff --git a/8.0-swoole-nginx/supervisor.conf b/8.0-swoole-nginx/supervisor.conf index 230e25e..b5cdc25 100644 --- a/8.0-swoole-nginx/supervisor.conf +++ b/8.0-swoole-nginx/supervisor.conf @@ -1,12 +1,12 @@ [program:nginx] -depends_on = php-fpm +depends_on = octane command = nginx -g "daemon off;" stopasgroup = true stderr_logfile = /dev/stderr stdout_logfile = /dev/stdout [program:octane] -command = php artisan octane:start --server=swoole --watch +command = su-exec kool php artisan octane:start --server=swoole --watch stopasgroup = true stderr_logfile = /dev/stderr stdout_logfile = /dev/stdout diff --git a/8.1-swoole-nginx-prod/supervisor.conf b/8.1-swoole-nginx-prod/supervisor.conf index e27a1e7..312fe84 100644 --- a/8.1-swoole-nginx-prod/supervisor.conf +++ b/8.1-swoole-nginx-prod/supervisor.conf @@ -1,12 +1,12 @@ [program:nginx] -depends_on = php-fpm +depends_on = octane command = nginx -g "daemon off;" stopasgroup = true stderr_logfile = /dev/stderr stdout_logfile = /dev/stdout [program:octane] -command = php artisan octane:start --server=swoole +command = su-exec kool php artisan octane:start --server=swoole stopasgroup = true stderr_logfile = /dev/stderr stdout_logfile = /dev/stdout diff --git a/8.1-swoole-nginx/supervisor.conf b/8.1-swoole-nginx/supervisor.conf index 230e25e..b5cdc25 100644 --- a/8.1-swoole-nginx/supervisor.conf +++ b/8.1-swoole-nginx/supervisor.conf @@ -1,12 +1,12 @@ [program:nginx] -depends_on = php-fpm +depends_on = octane command = nginx -g "daemon off;" stopasgroup = true stderr_logfile = /dev/stderr stdout_logfile = /dev/stdout [program:octane] -command = php artisan octane:start --server=swoole --watch +command = su-exec kool php artisan octane:start --server=swoole --watch stopasgroup = true stderr_logfile = /dev/stderr stdout_logfile = /dev/stdout diff --git a/8.2-swoole-nginx-prod/supervisor.conf b/8.2-swoole-nginx-prod/supervisor.conf index e27a1e7..312fe84 100644 --- a/8.2-swoole-nginx-prod/supervisor.conf +++ b/8.2-swoole-nginx-prod/supervisor.conf @@ -1,12 +1,12 @@ [program:nginx] -depends_on = php-fpm +depends_on = octane command = nginx -g "daemon off;" stopasgroup = true stderr_logfile = /dev/stderr stdout_logfile = /dev/stdout [program:octane] -command = php artisan octane:start --server=swoole +command = su-exec kool php artisan octane:start --server=swoole stopasgroup = true stderr_logfile = /dev/stderr stdout_logfile = /dev/stdout diff --git a/8.2-swoole-nginx/supervisor.conf b/8.2-swoole-nginx/supervisor.conf index 230e25e..b5cdc25 100644 --- a/8.2-swoole-nginx/supervisor.conf +++ b/8.2-swoole-nginx/supervisor.conf @@ -1,12 +1,12 @@ [program:nginx] -depends_on = php-fpm +depends_on = octane command = nginx -g "daemon off;" stopasgroup = true stderr_logfile = /dev/stderr stdout_logfile = /dev/stdout [program:octane] -command = php artisan octane:start --server=swoole --watch +command = su-exec kool php artisan octane:start --server=swoole --watch stopasgroup = true stderr_logfile = /dev/stderr stdout_logfile = /dev/stdout diff --git a/8.3-swoole-nginx-prod/supervisor.conf b/8.3-swoole-nginx-prod/supervisor.conf index e27a1e7..312fe84 100644 --- a/8.3-swoole-nginx-prod/supervisor.conf +++ b/8.3-swoole-nginx-prod/supervisor.conf @@ -1,12 +1,12 @@ [program:nginx] -depends_on = php-fpm +depends_on = octane command = nginx -g "daemon off;" stopasgroup = true stderr_logfile = /dev/stderr stdout_logfile = /dev/stdout [program:octane] -command = php artisan octane:start --server=swoole +command = su-exec kool php artisan octane:start --server=swoole stopasgroup = true stderr_logfile = /dev/stderr stdout_logfile = /dev/stdout diff --git a/8.3-swoole-nginx/supervisor.conf b/8.3-swoole-nginx/supervisor.conf index 230e25e..b5cdc25 100644 --- a/8.3-swoole-nginx/supervisor.conf +++ b/8.3-swoole-nginx/supervisor.conf @@ -1,12 +1,12 @@ [program:nginx] -depends_on = php-fpm +depends_on = octane command = nginx -g "daemon off;" stopasgroup = true stderr_logfile = /dev/stderr stdout_logfile = /dev/stdout [program:octane] -command = php artisan octane:start --server=swoole --watch +command = su-exec kool php artisan octane:start --server=swoole --watch stopasgroup = true stderr_logfile = /dev/stderr stdout_logfile = /dev/stdout diff --git a/template/supervisor-conf.blade.php b/template/supervisor-conf.blade.php index 8aafff7..dc14f5d 100644 --- a/template/supervisor-conf.blade.php +++ b/template/supervisor-conf.blade.php @@ -1,12 +1,12 @@ [program:nginx] -depends_on = php-fpm +depends_on = octane command = nginx -g "daemon off;" stopasgroup = true stderr_logfile = /dev/stderr stdout_logfile = /dev/stdout [program:octane] -command = php artisan octane:start --server=swoole{!! $prod ? '' : ' --watch' !!} +command = su-exec kool php artisan octane:start --server=swoole{!! $prod ? '' : ' --watch' !!} stopasgroup = true stderr_logfile = /dev/stderr stdout_logfile = /dev/stdout